From 2f19a41432fb85e49ded14131900377b1712593a Mon Sep 17 00:00:00 2001 From: Martin Abente Lahaye Date: Tue, 24 Jun 2014 13:16:09 -0400 Subject: [PATCH] Fix black palettes Push the palette widget opening process to the latest in order to avoid the race condition where the animation takes of the place of the real palette. Fixes #2184 Signed-off-by: Martin Abente Lahaye --- src/sugar3/graphics/palette.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sugar3/graphics/palette.py b/src/sugar3/graphics/palette.py index 1fb7f756..8b2831a3 100644 --- a/src/sugar3/graphics/palette.py +++ b/src/sugar3/graphics/palette.py @@ -211,8 +211,6 @@ class Palette(PaletteWindow): if self._invoker is not None: self._update_full_request() - PaletteWindow.popup(self, immediate) - if state is None: state = self.PRIMARY self.set_palette_state(state) @@ -222,6 +220,8 @@ class Palette(PaletteWindow): else: self._secondary_anim.stop() + PaletteWindow.popup(self, immediate) + def popdown(self, immediate=False): if immediate: self._secondary_anim.stop()