From 0dfec679d7976525f2ceca4d0feef32159625682 Mon Sep 17 00:00:00 2001 From: Marco Pesenti Gritti Date: Wed, 21 Mar 2007 17:21:52 +0100 Subject: [PATCH] Don't prelight when toggled --- sugar/graphics/toggleiconbutton.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sugar/graphics/toggleiconbutton.py b/sugar/graphics/toggleiconbutton.py index ae594f84..d161e156 100644 --- a/sugar/graphics/toggleiconbutton.py +++ b/sugar/graphics/toggleiconbutton.py @@ -63,7 +63,7 @@ class ToggleIconButton(IconButton, hippo.CanvasItem): return IconButton.do_button_press_event(self, event) def prelight(self, enter): - if enter: + if enter and not self._toggled: IconButton.prelight(self, enter) else: self.props.background_color = self._get_bg_color()