Hide all animators while deleting palettes #1265

This commit is contained in:
Aleksey Lim 2009-09-03 15:35:54 +00:00
parent da678c6973
commit 135b2a608d
2 changed files with 3 additions and 0 deletions

View File

@ -154,6 +154,8 @@ class Palette(PaletteWindow):
self._update_separators() self._update_separators()
def __destroy_cb(self, palette): def __destroy_cb(self, palette):
self._secondary_anim.stop()
self.popdown(immediate=True)
# Break the reference cycle. It looks like the gc is not able to free # Break the reference cycle. It looks like the gc is not able to free
# it, possibly because gtk.Menu memory handling is very special. # it, possibly because gtk.Menu memory handling is very special.
self.menu = None self.menu = None

View File

@ -330,6 +330,7 @@ class PaletteWindow(gtk.Window):
if not immediate: if not immediate:
self._popdown_anim.start() self._popdown_anim.start()
else: else:
self._popdown_anim.stop()
self.hide() self.hide()
def on_invoker_enter(self): def on_invoker_enter(self):