Esempio n. 1
0
        public void AddTab(Gtk.Widget page, Gdk.Pixbuf icon, string label)
        {
            Tab tab = new Tab();

            tab.SetLabel(page, icon, label);
            tab.ShowAll();
            box.PackStart(tab, true, true, 0);
            if (currentTab == -1)
            {
                CurrentTab = box.Children.Length - 1;
            }
            else
            {
                tab.Active = false;
                page.Hide();
            }

            tab.ButtonPressEvent += OnTabPress;
        }
Esempio n. 2
0
        public void AddTab(Gtk.Widget page, Gdk.Pixbuf icon, string label)
        {
            Tab tab = new Tab ();
            tab.SetLabel (page, icon, label);
            tab.ShowAll ();
            box.PackStart (tab, true, true, 0);
            if (currentTab == -1)
                CurrentTab = box.Children.Length - 1;
            else {
                tab.Active = false;
                page.Hide ();
            }

            tab.ButtonPressEvent += OnTabPress;
        }