Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarlos Garnacho <carlos@lanedo.com>2013-01-17 12:29:51 (GMT)
committer Simon Schampijer <simon@laptop.org>2013-01-17 17:17:43 (GMT)
commit3596e8c6cbee41a6368dcbc884bf61b58116e958 (patch)
tree26631d2aa54b3b59410bd6315210b8eb94a271e0
parent5fd2dd8a98f3d0bf9736dea82228b0c093004bc0 (diff)
palettemenuwidget: Ensure the widget is realized before popping it up, SL #4388
Otherwise the internal state is messed up, GTK+ grabs may be held on unrealized widgets. Signed-off-by: Carlos Garnacho <carlos@lanedo.com> Acked-by: Simon Schampijer <simon@laptop.org>
-rw-r--r--src/sugar3/graphics/palettewindow.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/sugar3/graphics/palettewindow.py b/src/sugar3/graphics/palettewindow.py
index ff5e340..c48ae55 100644
--- a/src/sugar3/graphics/palettewindow.py
+++ b/src/sugar3/graphics/palettewindow.py
@@ -148,6 +148,7 @@ class _PaletteMenuWidget(Gtk.Menu):
self._invoker = invoker
self._find_all_menus(self)
+ self.realize()
for menu in self._menus:
if self._invoker:
menu.connect('motion-notify-event', self._motion_notify_cb)