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 Gtk; using System; namespace Dizzy { public class FileTreeView { // La treeview passataci dalla grafica Gtk.TreeView tree; // Le colonne che ci servono Gtk.TreeViewColumn filenameColumn; Gtk.TreeViewColumn userColumn; Gtk.TreeViewColumn sizeColumn; // La listStore per memorizzare i file // che troviamo. Gtk.ListStore fileListStore; public FileTreeView (Gtk.TreeView tree) { // Costruisco la ListStore e popolo di colonne // la TreeView this.tree = tree; this.tree.ResizeMode = ResizeMode.Immediate; filenameColumn.Title = "Nome del file"; userColumn.Title = "Utente"; sizeColumn.Title = "Dimensione"; sizeColumn.Resizable = true; this.tree.AppendColumn (filenameColumn); this.tree.AppendColumn (sizeColumn); this.tree.AppendColumn (userColumn); this.tree.Model = fileListStore; CellSetup (); } protected void CellSetup() { filenameColumn.PackStart (filenameRenderer, true); filenameColumn.AddAttribute (filenameRenderer, "text", 0); filenameColumn.Resizable = true; // Dimensione sizeColumn.PackStart (sizeRenderer, true); sizeColumn.AddAttribute (sizeRenderer, "text", 3); filenameColumn.Resizable = true; // Utente userColumn.Resizable = true; userColumn.PackStart (userRenderer, true); userColumn.AddAttribute (userRenderer, "text", 1); } public void AddFile(Dizzy.File file) { // Aggiungo i valori effettivi nel liststore. lock (fileListStore) { fileListStore.AppendValues( file.name, file.user, file.path, file.SizeToString ()); } } public void Clear () { fileListStore.Clear (); } public File GetFileFromPath (TreePath path) { fileListStore.GetIter(out iter, path); (string) fileListStore.GetValue(iter, 1)); // (string) fileListStore.GetValue(iter, 0)); Log.Info ("Richiesto " + f.path); return f; } } }