#8485 Detach from palette when a widget is destroyed

This commit is contained in:
Tomeu Vizoso
2008-09-18 14:12:18 +02:00
parent 1ab0c67830
commit f2a8948bf1
4 changed files with 24 additions and 0 deletions
+6
View File
@@ -358,6 +358,12 @@ class TrayIcon(gtk.ToolItem):
self.set_size_request(style.GRID_CELL_SIZE, style.GRID_CELL_SIZE)
self.connect('destroy', self.__destroy_cb)
def __destroy_cb(self, icon):
if self._palette_invoker is not None:
self._palette_invoker.detach()
def create_palette(self):
return None