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.  
  18. // Inizializziamo la vista dei file.
  19. files = new Dizzy.FileTreeView (filelist);
  20.  
  21. // .. e anche quella dei download
  22. tasks = new Dizzy.TaskTreeView (tasklist);
  23.  
  24. this.protocol = new Protocol (user, password);
  25. }
  26.  
  27.  
  28. protected void OnDeleteEvent (object sender, DeleteEventArgs a)
  29. {
  30. protocol.Disconnect ();
  31. Application.Quit ();
  32.  
  33. // Questo è molto grezzo ma è effettivamente l'unico metodo per uscire
  34. // per il momento.
  35. this.Destroy ();
  36. a.RetVal = true;
  37. }
  38.  
  39. protected virtual void OnSearchRequested (object sender, System.EventArgs e)
  40. {
  41. this.protocol.Search(searchBox.Text, ref this.files);
  42. }
  43.  
  44. protected virtual void OnRowActivated (object o, Gtk.RowActivatedArgs args)
  45. {
  46. Console.WriteLine("row_activated called");
  47. File f = this.files.GetFileFromPath (args.Path);
  48. // this.tasks.AddTask (f.name, 24);
  49. string download_folder = this.downloadpathchooser.Filename;
  50. this.protocol.Download(f, ref tasks, download_folder);
  51.  
  52. }
  53.  
  54. }