From ea8cbac94ed90400a674f06db298a2edd1637be0 Mon Sep 17 00:00:00 2001 From: Tomeu Vizoso Date: Fri, 30 May 2008 12:18:10 +0000 Subject: Detach the invoker instead of destroying the palette. --- (limited to 'src') 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: -- cgit v0.9.1