diff options
author | Tomeu Vizoso <tomeu@tomeuvizoso.net> | 2008-05-30 12:18:10 (GMT) |
---|---|---|
committer | Tomeu Vizoso <tomeu@tomeuvizoso.net> | 2008-05-30 12:18:10 (GMT) |
commit | ea8cbac94ed90400a674f06db298a2edd1637be0 (patch) | |
tree | 5fafda71d6fec1667bea038ce471917fde34878f /src | |
parent | fcc468a323d4b01d39d5cf9214871cbccfd6eda7 (diff) |
Detach the invoker instead of destroying the palette.
Diffstat (limited to 'src')
-rw-r--r-- | src/sugar/graphics/icon.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sugar/graphics/icon.py b/src/sugar/graphics/icon.py index eeb36a1..cd0e485 100644 --- a/src/sugar/graphics/icon.py +++ b/src/sugar/graphics/icon.py @@ -414,8 +414,8 @@ class CanvasIcon(hippo.CanvasBox, hippo.CanvasItem): self.connect('destroy', self.__destroy_cb) def __destroy_cb(self, icon): - if self._palette is not None: - self._palette.destroy() + if self._palette_invoker is not None: + self._palette_invoker.detach() def set_file_name(self, value): if self._buffer.file_name != value: |