Detach the invoker instead of destroying the palette.
This commit is contained in:
parent
fcc468a323
commit
ea8cbac94e
@ -414,8 +414,8 @@ class CanvasIcon(hippo.CanvasBox, hippo.CanvasItem):
|
|||||||
self.connect('destroy', self.__destroy_cb)
|
self.connect('destroy', self.__destroy_cb)
|
||||||
|
|
||||||
def __destroy_cb(self, icon):
|
def __destroy_cb(self, icon):
|
||||||
if self._palette is not None:
|
if self._palette_invoker is not None:
|
||||||
self._palette.destroy()
|
self._palette_invoker.detach()
|
||||||
|
|
||||||
def set_file_name(self, value):
|
def set_file_name(self, value):
|
||||||
if self._buffer.file_name != value:
|
if self._buffer.file_name != value:
|
||||||
|
Loading…
Reference in New Issue
Block a user