public void RegisterCommandBar (ICommandBar commandBar) { if (toolbars.Contains (commandBar)) return; toolbars.Add (commandBar); StartStatusUpdater (); commandBar.SetEnabled (guiLock == 0); object activeWidget = GetActiveWidget (rootWidget); commandBar.Update (activeWidget); }
public void RegisterCommandBar (ICommandBar commandBar) { if (toolbars.Contains (commandBar)) return; toolbars.Add (commandBar); if (enableToolbarUpdate && !toolbarUpdaterRunning) { GLib.Timeout.Add (500, new GLib.TimeoutHandler (UpdateStatus)); toolbarUpdaterRunning = true; } commandBar.SetEnabled (guiLock == 0); object activeWidget = GetActiveWidget (rootWidget); commandBar.Update (activeWidget); }