Пример #1
0
        void OnTabPress(object s, EventArgs args)
        {
            CurrentTab = Array.IndexOf(box.Children, s);
            DockItemTitleTab t = (DockItemTitleTab)s;

            DockItem.SetFocus(t.Page);
            QueueDraw();
        }
Пример #2
0
        void OnTabPress(object s, Gtk.ButtonPressEventArgs args)
        {
            CurrentTab = Array.IndexOf(box.Children, s);
            DockItemTitleTab t = (DockItemTitleTab)s;

            DockItem.SetFocus(t.Page);
            QueueDraw();
            args.RetVal = true;
        }
Пример #3
0
		public void AddTab (DockItemTitleTab tab)
		{
			if (tab.Parent != null)
				((Gtk.Container)tab.Parent).Remove (tab);

			box.PackStart (tab, false, false, 0);

			if (currentTab == -1)
				CurrentTab = box.Children.Length - 1;
			else {
				tab.Active = false;
				tab.Page.Hide ();
			}
			
			tab.ButtonPressEvent += OnTabPress;
		}
Пример #4
0
        public void AddTab(DockItemTitleTab tab)
        {
            if (tab.Parent != null)
            {
                ((Gtk.Container)tab.Parent).Remove(tab);
            }

            box.PackStart(tab, false, false, 0);

            if (currentTab == -1)
            {
                CurrentTab = box.Children.Length - 1;
            }
            else
            {
                tab.Active = false;
                tab.Page.Hide();
            }

            tab.ButtonPressEvent += OnTabPress;
        }
Пример #5
0
        public void AddTab(DockItemTitleTab tab)
        {
            if (tab.Parent != null)
            {
                ((Gtk.Container)tab.Parent).Remove(tab);
            }

            box.PackStart(tab, false, false, 0);

            if (currentTab == -1)
            {
                CurrentTab = box.Children.Length - 1;
            }
            else
            {
                tab.Active = false;
                tab.Page.Hide();
            }

            tab.TabPressed += OnTabPress;
            tab.UpdateRole(true, this);

            UpdateAccessibilityTabs();
        }