Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/sugar
diff options
context:
space:
mode:
authorBenjamin Berg <benjamin@sipsolutions.net>2007-08-10 21:21:36 (GMT)
committer Benjamin Berg <benjamin@sipsolutions.net>2007-08-10 21:21:36 (GMT)
commit91d7dbcb0896544b4cf8098373de72c887bb9e31 (patch)
tree5ee0c5796f0fa630ff61132621884a1a51fdd557 /sugar
parent476189323d1bde66b73928273c3c3cee35992493 (diff)
Ignore grab_notify in the palette menu so that eg. scales work.
Diffstat (limited to 'sugar')
-rw-r--r--sugar/graphics/palette.py4
1 files changed, 4 insertions, 0 deletions
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()