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]
using System; using Gtk; using Dizzy; public partial class MainWindow : Gtk.Window { Protocol protocol; FileTreeView files; TaskTreeView tasks; GlobalConfig config; public MainWindow (ref GlobalConfig config) : base(Gtk.WindowType.Toplevel) { Build (); this.config = config; // Inizializziamo la vista dei file. // .. e anche quella dei download // Carichiamo qualche impostazione di default string downloadpath = config.GetValue("download_folder"); if (downloadpath != "") downloadpathchooser.SetFilename(downloadpath); } protected void OnDeleteEvent (object sender, DeleteEventArgs a) { protocol.Disconnect (); Application.Quit (); // Questo è molto grezzo ma è effettivamente l'unico metodo per uscire // per il momento. this.Destroy (); a.RetVal = true; } protected virtual void OnSearchRequested (object sender, System.EventArgs e) { this.protocol.Search(searchBox.Text, ref this.files); } protected virtual void OnRowActivated (object o, Gtk.RowActivatedArgs args) { Console.WriteLine("row_activated called"); File f = this.files.GetFileFromPath (args.Path); // this.tasks.AddTask (f.name, 24); string download_folder = this.downloadpathchooser.Filename; this.protocol.Download(f, ref tasks, download_folder); } protected virtual void OnDownloadPathSelectionChanged (object sender, System.EventArgs e) { config.InsertValue("download_folder", downloadpathchooser.Filename); } }