viewgit/index.php:465 Only variables should be passed by reference [2048]

viewgit/index.php:466 Non-static method GeSHi::get_language_name_from_extension() should not be called statically [2048]

  1. using System;
  2. using Gtk;
  3. using Dizzy;
  4.  
  5. public partial class MainWindow : Gtk.Window
  6. {
  7.  
  8. Protocol protocol;
  9. FileTreeView files;
  10. TaskTreeView tasks;
  11.  
  12. public MainWindow (string user, string password) : base(Gtk.WindowType.Toplevel)
  13. {
  14.  
  15. Build ();
  16.  
  17. // Inizializziamo la vista dei file.
  18. files = new Dizzy.FileTreeView (filelist);
  19.  
  20. // .. e anche quella dei download
  21. tasks = new Dizzy.TaskTreeView (tasklist);
  22.  
  23. this.protocol = new Protocol (user, password);
  24. }
  25.  
  26.  
  27. protected void OnDeleteEvent (object sender, DeleteEventArgs a)
  28. {
  29. protocol.Disconnect ();
  30. Application.Quit ();
  31.  
  32. // Questo è molto grezzo ma è effettivamente l'unico metodo per uscire
  33. // per il momento.
  34. this.Destroy ();
  35. a.RetVal = true;
  36. }
  37.  
  38. protected virtual void OnSearchRequested (object sender, System.EventArgs e)
  39. {
  40. this.protocol.Search(searchBox.Text, ref this.files);
  41. }
  42.  
  43. protected virtual void OnRowActivated (object o, Gtk.RowActivatedArgs args)
  44. {
  45. Console.WriteLine("row_activated called");
  46. File f = this.files.GetFileFromPath (args.Path);
  47. // this.tasks.AddTask (f.name, 24);
  48. string download_folder = this.downloadpathchooser.Filename;
  49. this.protocol.Download(f, ref tasks, download_folder);
  50.  
  51. }
  52.  
  53. }