From 91d7dbcb0896544b4cf8098373de72c887bb9e31 Mon Sep 17 00:00:00 2001 From: Benjamin Berg Date: Fri, 10 Aug 2007 23:21:36 +0200 Subject: [PATCH] Ignore grab_notify in the palette menu so that eg. scales work. --- sugar/graphics/palette.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sugar/graphics/palette.py b/sugar/graphics/palette.py index b251ca77..bcc32110 100644 --- a/sugar/graphics/palette.py +++ b/sugar/graphics/palette.py @@ -482,6 +482,10 @@ class _Menu(_sugaruiext.Menu): # around everything. gtk.MenuShell.do_expose_event(self, event) + def do_grab_notify(self, was_grabbed): + # Ignore grab_notify as the menu would close otherwise + pass + def do_deactivate(self): self._palette._hide()