diff options
author | Carlos Garnacho <carlos@lanedo.com> | 2013-01-17 12:29:51 (GMT) |
---|---|---|
committer | Ajay Garg <ajay@activitycentral.com> | 2013-01-18 08:50:20 (GMT) |
commit | 0c5de83f68eeb62370c11d819348e7630766511c (patch) | |
tree | 2f975b53905d7ab626a95fe4f7d00660b402a47e | |
parent | 358e37227a0f0a8776096e1709a2aecde3e45159 (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>
Signed-off-by: Ajay Garg <ajay@activitycentral.com>
-rw-r--r-- | src/sugar3/graphics/palettewindow.py | 1 |
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) |