From 91d7dbcb0896544b4cf8098373de72c887bb9e31 Mon Sep 17 00:00:00 2001 From: Benjamin Berg Date: Fri, 10 Aug 2007 21:21:36 +0000 Subject: Ignore grab_notify in the palette menu so that eg. scales work. --- (limited to 'sugar/graphics') diff --git a/sugar/graphics/palette.py b/sugar/graphics/palette.py index b251ca7..bcc3211 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() -- cgit v0.9.1