diff options
author | Benjamin Berg <benjamin@sipsolutions.net> | 2007-08-22 18:38:48 (GMT) |
---|---|---|
committer | Benjamin Berg <benjamin@sipsolutions.net> | 2007-08-22 18:38:48 (GMT) |
commit | 3c99f9f1ea85786b95429c68d5c15a921e1af445 (patch) | |
tree | ab4fd9173cdcdb52a7e8df984216c75aeba2f443 /sugar/graphics/toolbutton.py | |
parent | 59d2ba5c26831d2f17e19ff9e6ff0dff4633a630 (diff) |
Draw a prelight for toolbuttons from the toolbutton instead of relying on the button.
Diffstat (limited to 'sugar/graphics/toolbutton.py')
-rw-r--r-- | sugar/graphics/toolbutton.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sugar/graphics/toolbutton.py b/sugar/graphics/toolbutton.py index b42f63e..2b90fd4 100644 --- a/sugar/graphics/toolbutton.py +++ b/sugar/graphics/toolbutton.py @@ -51,6 +51,14 @@ class ToolButton(gtk.ToolButton): if self._palette and self._palette.is_up(): invoker = self._palette.props.invoker invoker.draw_rectangle(event, self._palette) + elif self.child.state == gtk.STATE_PRELIGHT: + self.child.style.paint_box(event.window, gtk.STATE_PRELIGHT, + gtk.SHADOW_NONE, event.area, + self.child, "toolbutton-prelight", + self.allocation.x, + self.allocation.y, + self.allocation.width, + self.allocation.height) gtk.ToolButton.do_expose_event(self, event) |