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; AuthDialog a; public MainWindow (ref GlobalConfig config) : base(Gtk.WindowType.Toplevel) { Build (); this.config = config; // Inizializziamo la vista dei file. EventManager.RegisterFileTreeView (ref files); // .. e anche quella dei download EventManager.RegisterTaskTreeView (ref tasks); // Carichiamo qualche impostazione di default string downloadpath = config.GetValue("download_folder"); if (downloadpath != "") downloadpathchooser.SetFilename(downloadpath); this.protocol.AuthenticationRequired += this.Connect; Log.StatusBarUpdate += this.OnStatusBarUpdate; } public void OnStatusBarUpdate (string message) { dizzystatus.Push(0, message); } protected void Connect () { if (this.a != null) return; a.Run (); a.Destroy (); a = null; } protected void OnDeleteEvent (object sender, DeleteEventArgs a) { if (protocol != null) 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.files.Clear (); EventManager.SearchStarted (); this.protocol.Search (searchBox.Text, searchUserBox.Text, typeBox.ActiveText); } protected virtual void OnRowActivated (object o, Gtk.RowActivatedArgs args) { File f = this.files.GetFileFromPath (args.Path); 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); } protected virtual void OnListUpdateRequired (object sender, System.EventArgs e) { this.protocol.UpdateFileList (); } protected virtual void OnDisconnectionRequested (object sender, System.EventArgs e) { this.config.authenticated = false; } protected virtual void OnUploadRequested (object sender, System.EventArgs e) { // Come prima cosa otteniamo il file che il povero utente desidera // caricare sul server. string filename = uploadChooserButton.Filename; this.protocol.Upload(filename, ref this.tasks); } }