From 2c0ad08fcfed2dba9677b46118e89c3a614f8316 Mon Sep 17 00:00:00 2001 From: Marco Pesenti Gritti Date: Wed, 8 Aug 2007 11:53:41 +0200 Subject: [PATCH] Call embed after the widget hierarchy is setup so that we get the right toplevel. --- sugar/graphics/palette.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sugar/graphics/palette.py b/sugar/graphics/palette.py index 0fb7182c..9d578773 100644 --- a/sugar/graphics/palette.py +++ b/sugar/graphics/palette.py @@ -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',