From 6b992ee9fbcad4727d7ed27b0a771da2cadf1854 Mon Sep 17 00:00:00 2001 From: Aleksey Lim Date: Tue, 8 Sep 2009 07:14:22 +0000 Subject: [PATCH] Close previous palette on reseting palette property in invoker #1299 --- src/sugar/graphics/palettewindow.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/sugar/graphics/palettewindow.py b/src/sugar/graphics/palettewindow.py index eb7a55a2..73c6ae7f 100644 --- a/src/sugar/graphics/palettewindow.py +++ b/src/sugar/graphics/palettewindow.py @@ -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