Example #1
0
    public MainWindow()
        : base(Gtk.WindowType.Toplevel)
    {
        Build ();
        profile_combo = new OpenLauncher.Combo();
        mainVbox.Add(profile_combo);
        tabs = new Tabs();
        mainVbox.Add(tabs);

        gui = new GuiBuilder(this);

        this.refresh();
    }
Example #2
0
 private ICombo createCombo(XmlNode node)
 {
     ICombo return_me = new Combo();
     int i = 0;
     foreach(XmlNode sub_node in node.ChildNodes) {
         if(sub_node.Name!="option")
             continue;
         return_me.addItem("",sub_node.Attributes["title"].Value);
         if(sub_node.Attributes["default"]!=null&&sub_node.Attributes["default"].Value=="true") {
             return_me.setActiveIndex(i);
         }
         i++;
     }
     return return_me;
 }