Close previous palette on reseting palette property in invoker #1299

This commit is contained in:
Aleksey Lim 2009-09-08 07:14:22 +00:00
parent cb5951d3b9
commit 6b992ee9fb

View File

@ -641,6 +641,9 @@ class Invoker(gobject.GObject):
return self._palette
def set_palette(self, palette):
if self._palette is not None:
self._palette.popdown(immediate=True)
if self._palette:
self._palette.props.invoker = None