コード例 #1
0
 internal void RegisterToolbar(CommandToolbar toolbar)
 {
     toolbars.Add (toolbar);
     if (enableToolbarUpdate && !toolbarUpdaterRunning) {
         GLib.Timeout.Add (500, new GLib.TimeoutHandler (UpdateStatus));
         toolbarUpdaterRunning = true;
     }
 }
コード例 #2
0
 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;
 }