Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/sugar/graphics/tray.py
diff options
context:
space:
mode:
authorSimon Schampijer <simon@schampijer.de>2007-09-17 21:42:17 (GMT)
committer Simon Schampijer <simon@schampijer.de>2007-09-17 21:42:17 (GMT)
commit8ae1f9aad8e96c683c55988b317562c37634737e (patch)
treef005bbd4da779b14530b5e985d3c3f0339397b98 /sugar/graphics/tray.py
parent44ffef5f67d7ecae2ebdf7f6ce4c0934f645e8ad (diff)
Fix that several palettes are not hooked up to the same button #3293
Diffstat (limited to 'sugar/graphics/tray.py')
-rw-r--r--sugar/graphics/tray.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/sugar/graphics/tray.py b/sugar/graphics/tray.py
index af2e7eb..b779ac9 100644
--- a/sugar/graphics/tray.py
+++ b/sugar/graphics/tray.py
@@ -216,6 +216,8 @@ class _IconWidget(gtk.EventBox):
gtk.EventBox.do_expose_event(self, event)
def set_palette(self, palette):
+ if self._palette is not None:
+ self._palette.props.invoker = None
self._palette = palette
self._palette.props.invoker = ToolInvoker(self)