Call embed after the widget hierarchy is setup so that
we get the right toplevel.
This commit is contained in:
parent
1d297b3376
commit
2c0ad08fcf
@ -103,9 +103,6 @@ class Palette(gtk.Window):
|
||||
vbox.pack_start(menu_box)
|
||||
menu_box.show()
|
||||
|
||||
self._menu = _sugaruiext.Menu()
|
||||
self._menu.embed(menu_box)
|
||||
|
||||
self._content = gtk.VBox()
|
||||
vbox.pack_start(self._content)
|
||||
|
||||
@ -115,6 +112,9 @@ class Palette(gtk.Window):
|
||||
self.add(vbox)
|
||||
vbox.show()
|
||||
|
||||
self._menu = _sugaruiext.Menu()
|
||||
self._menu.embed(menu_box)
|
||||
|
||||
self.connect('enter-notify-event',
|
||||
self._enter_notify_event_cb)
|
||||
self.connect('leave-notify-event',
|
||||
|
Loading…
Reference in New Issue
Block a user