상속: Gtk.Dialog
예제 #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
파일: ThemedIcon.cs 프로젝트: mono/stetic
 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;
 }