public static string Browse(Gtk.Window parent, string selection) { ThemedIconBrowser browser = new ThemedIconBrowser(parent); browser.list.Selection = selection; int response = browser.Run(); if (response == (int)Gtk.ResponseType.Ok) { selection = browser.list.Selection; } browser.Destroy(); return(selection); }
void button_Clicked(object obj, EventArgs args) { Gtk.Window parent = (Gtk.Window)GetAncestor(Gtk.Window.GType); Value = ThemedIconBrowser.Browse(parent, (string)Value); }
public static string Browse(Gtk.Window parent, string selection) { ThemedIconBrowser browser = new ThemedIconBrowser (parent); browser.list.Selection = selection; int response = browser.Run (); if (response == (int)Gtk.ResponseType.Ok) selection = browser.list.Selection; browser.Destroy (); return selection; }