internal void RegisterToolbar(CommandToolbar toolbar)
 {
     toolbars.Add (toolbar);
     if (enableToolbarUpdate && !toolbarUpdaterRunning) {
         GLib.Timeout.Add (500, new GLib.TimeoutHandler (UpdateStatus));
         toolbarUpdaterRunning = true;
     }
 }
 public Gtk.Toolbar CreateToolbar(string id, CommandEntrySet entrySet)
 {
     CommandToolbar toolbar = new CommandToolbar (this, id, entrySet.Name);
     foreach (CommandEntry entry in entrySet)
         toolbar.Add (entry.CreateToolItem (this));
     return toolbar;
 }