Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/sugar
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <mpg@redhat.com>2007-03-21 16:21:52 (GMT)
committer Marco Pesenti Gritti <mpg@redhat.com>2007-03-21 16:21:52 (GMT)
commit0dfec679d7976525f2ceca4d0feef32159625682 (patch)
tree680e5ffbf69ef391673425ddd192d7f7fe3cbca1 /sugar
parent261a7e743fe406797b13edcdcc185472f3766eca (diff)
Don't prelight when toggled
Diffstat (limited to 'sugar')
-rw-r--r--sugar/graphics/toggleiconbutton.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sugar/graphics/toggleiconbutton.py b/sugar/graphics/toggleiconbutton.py
index ae594f8..d161e15 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()