Hide all animators while deleting palettes #1265
This commit is contained in:
parent
da678c6973
commit
135b2a608d
@ -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
|
||||||
|
@ -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):
|
||||||
|
Loading…
Reference in New Issue
Block a user