Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/sugar/graphics/toolbutton.py
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <mpg@redhat.com>2007-08-15 19:32:10 (GMT)
committer Marco Pesenti Gritti <mpg@redhat.com>2007-08-15 19:32:10 (GMT)
commitd7d1e172a3995b44350527814a7b3ac0fda3feff (patch)
treea23aa089f78cc67a79fd1bb308718fc486d3d686 /sugar/graphics/toolbutton.py
parent3bb86e0cbbbd5f93b14f0672a88a43776ec47d94 (diff)
Let the button/theme deal with prelight. I don't think
it fits inside palette drawing.
Diffstat (limited to 'sugar/graphics/toolbutton.py')
-rw-r--r--sugar/graphics/toolbutton.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/sugar/graphics/toolbutton.py b/sugar/graphics/toolbutton.py
index 11c803e..95e95cd 100644
--- a/sugar/graphics/toolbutton.py
+++ b/sugar/graphics/toolbutton.py
@@ -48,10 +48,9 @@ class ToolButton(gtk.ToolButton):
self.set_palette(Palette(text))
def do_expose_event(self, event):
- if self._palette and self._palette.props.draw_gap:
- if self._palette.is_up() or self.child.state == gtk.STATE_PRELIGHT:
- invoker = self._palette.props.invoker
- invoker.draw_invoker_rect(event, self._palette)
+ if self._palette and self._palette.is_up():
+ invoker = self._palette.props.invoker
+ invoker.draw_invoker_rect(event, self._palette)
gtk.ToolButton.do_expose_event(self, event)