void AddItem(ActionMenuItem aitem, int pos) { Gtk.Table t = new Gtk.Table(1, 3, false); aitem.Attach(t, 0, 0); aitem.KeyPressEvent += OnItemKeyPress; t.ShowAll(); CustomMenuBarItem it = new CustomMenuBarItem(); it.ActionMenuItem = aitem; aitem.Bind(it); it.Child = t; it.ShowAll(); Insert(it, pos); }
void AddItem(ActionMenuItem aitem, int pos) { Gtk.Table t = new Gtk.Table (1, 3, false); aitem.Attach (t, 0, 0); aitem.KeyPressEvent += OnItemKeyPress; t.ShowAll (); CustomMenuBarItem it = new CustomMenuBarItem (); it.ActionMenuItem = aitem; aitem.Bind (it); it.Child = t; it.ShowAll (); Insert (it, pos); }