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. a.RetVal = true;
  32. }
  33.  
  34. protected virtual void OnSearchRequested (object sender, System.EventArgs e)
  35. {
  36. this.protocol.Search(searchBox.Text, ref this.files);
  37. }
  38.  
  39. protected virtual void OnRowActivated (object o, Gtk.RowActivatedArgs args)
  40. {
  41. Console.WriteLine("row_activated called");
  42. File f = this.files.GetFileFromPath (args.Path);
  43. // this.tasks.AddTask (f.name, 24);
  44. string download_folder = this.downloadpathchooser.Filename;
  45. this.protocol.Download(f, ref tasks, download_folder);
  46.  
  47. }
  48.  
  49. }