Example #1
0
        private void GenerateTabs()
        {
            VBox tab = new VBox();
             Image img = new Image();
             img.Pixbuf = Images.GetPixbuf("options-general.png");
             tab.PackStart(img, false, false, 2);
             tab.PackEnd(new Label("General"), false, false, 0);
             tab.SetSizeRequest(60,50);
             tab.ShowAll();
             optionTabs.AppendPage(GenerateGeneral(), tab);

             tab = new VBox();
             img = new Image();
             img.Pixbuf = Images.GetPixbuf("options-text-editors.png");
             tab.PackStart(img, false, false, 2);
             tab.PackEnd(new Label("Text Editors"), false, false, 0);
             tab.SetSizeRequest(60,50);
             tab.ShowAll();
             optionTabs.AppendPage(GenerateTextEditors(), tab);

             tab = new VBox();
             img = new Image();
             img.Pixbuf = Images.GetPixbuf("options-results.png");
             tab.PackStart(img, false, false, 2);
             tab.PackEnd(new Label("Results"), false, false, 0);
             tab.SetSizeRequest(60,50);
             tab.ShowAll();
             optionTabs.AppendPage(GenerateResults(), tab);

             tab = new VBox();
             img = new Image();
             img.Pixbuf = Images.GetPixbuf("options-plugins.png");
             tab.PackStart(img, false, false, 2);
             tab.PackEnd(new Label("Plugins"), false, false, 0);
             tab.SetSizeRequest(60,50);
             tab.ShowAll();
             optionTabs.AppendPage(GeneratePlugins(), tab);

             tab.Dispose();
             img.Dispose();

             optionTabs.SwitchPage += new SwitchPageHandler(optionTabs_SwitchPage);
        }