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; bool connected = false; 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); this.Connect (); } protected void Connect () { this.connected = true; try { a.Run (); a.Destroy (); } catch (Exception ex) { this.connected = false; DialogFlags.Modal, MessageType.Error, ButtonsType.Ok, true,""); d.Markup = "Errore di autenticazione. Non è stato possibile connettersi" + "all'host <b>poisson.phc.unipi.it</b>."; d.Run (); d.Destroy (); } } 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) { if(!connected) {this.Connect ();} if(connected) { this.files.SearchInProgress (); 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; if(!connected) {this.Connect ();} if(connected) {this.protocol.Download(f, ref tasks, download_folder);} } protected virtual void OnDownloadPathSelectionChanged (object sender, System.EventArgs e) { config.InsertValue("download_folder", downloadpathchooser.Filename); } }