Пример #1
0
        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);
        }
Пример #2
0
 void button_Clicked(object obj, EventArgs args)
 {
     Gtk.Window parent = (Gtk.Window)GetAncestor(Gtk.Window.GType);
     Value = ThemedIconBrowser.Browse(parent, (string)Value);
 }
Пример #3
0
 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;
 }