Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Schampijer <simon@schampijer.de>2011-12-15 02:14:12 (GMT)
committer Simon Schampijer <simon@schampijer.de>2011-12-15 02:14:12 (GMT)
commit551710cb5ee8c8c66c0384e4c17b03aff33f780e (patch)
tree97c9e37851af004ca046ab1970332d3db92f7b66
parent87d5f4363b782fc2f192140de79b87a535503220 (diff)
When the Invoker detaches the destroy method will be called
This has been removed accidentely
-rw-r--r--src/sugar3/graphics/palettewindow.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/sugar3/graphics/palettewindow.py b/src/sugar3/graphics/palettewindow.py
index fe0b5a1..ce13544 100644
--- a/src/sugar3/graphics/palettewindow.py
+++ b/src/sugar3/graphics/palettewindow.py
@@ -450,6 +450,10 @@ class PaletteWindow(GObject.GObject):
self._widget.disconnect_by_func(self.__leave_notify_cb)
self._set_effective_group_id(None)
+ def destroy(self):
+ if self._widget is not None:
+ self._widget.destroy()
+
def __destroy_cb(self, palette):
self._mouse_detector.disconnect_by_func(self._mouse_slow_cb)