Exemplo n.º 1
0
		protected void AddButton (string label, Gtk.Widget page)
		{
			TabView view = new TabView (label, page);
			tabs.Add (view);
			if (WorkbenchWindow != null) {
				view.WorkbenchWindow = WorkbenchWindow;
				WorkbenchWindow.AttachViewContent (view);
			}
		}
Exemplo n.º 2
0
        protected void AddButton(string label, Gtk.Widget page)
        {
            TabView view = new TabView(label, page);

            tabs.Add(view);
            if (WorkbenchWindow != null)
            {
                view.WorkbenchWindow = WorkbenchWindow;
                WorkbenchWindow.AttachViewContent(view);
            }
        }
Exemplo n.º 3
0
 void OnActiveViewContentChanged(object o, ActiveViewContentEventArgs e)
 {
     if (WorkbenchWindow.ActiveViewContent == this)
     {
         OnPageShown(0);
     }
     else
     {
         TabView tab = WorkbenchWindow.ActiveViewContent as TabView;
         if (tab != null)
         {
             int n = tabs.IndexOf(tab);
             if (n != -1)
             {
                 OnPageShown(n + 1);
             }
         }
     }
 }