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:20:10 (GMT)
commitea9b86e3efa4b8ba793aa7cd3648a64d3a101b21 (patch)
treea4143a6c153ca9749f3cb3fde78674ecc60dce1d
parent109eca781e6cd63d77f999e5acaa80a031dab660 (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)