Call embed after the widget hierarchy is setup so that

we get the right toplevel.
This commit is contained in:
Marco Pesenti Gritti 2007-08-08 11:53:41 +02:00
parent 1d297b3376
commit 2c0ad08fcf

View File

@ -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',