diff options
author | Morgan Collett <morgan.collett@gmail.com> | 2007-08-22 19:49:52 (GMT) |
---|---|---|
committer | Morgan Collett <morgan.collett@gmail.com> | 2007-08-22 19:49:52 (GMT) |
commit | d52860a764fdc0f488bfca924cd9eb39a8528960 (patch) | |
tree | f92cbe027268dbecdde432b0fd06616311fdd7c0 /sugar | |
parent | 63f987594b248d14e0a4daff704224261e322d3a (diff) | |
parent | 3c99f9f1ea85786b95429c68d5c15a921e1af445 (diff) |
Merge branch 'master' of git+ssh://dev.laptop.org/git/sugar
Diffstat (limited to 'sugar')
-rw-r--r-- | sugar/graphics/radiotoolbutton.py | 8 | ||||
-rw-r--r-- | sugar/graphics/toggletoolbutton.py | 8 | ||||
-rw-r--r-- | sugar/graphics/toolbutton.py | 8 |
3 files changed, 24 insertions, 0 deletions
diff --git a/sugar/graphics/radiotoolbutton.py b/sugar/graphics/radiotoolbutton.py index 7bede42..cf0cc64 100644 --- a/sugar/graphics/radiotoolbutton.py +++ b/sugar/graphics/radiotoolbutton.py @@ -51,6 +51,14 @@ class RadioToolButton(gtk.RadioToolButton): 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.RadioToolButton.do_expose_event(self, event) diff --git a/sugar/graphics/toggletoolbutton.py b/sugar/graphics/toggletoolbutton.py index 72a6c84..a83bebc 100644 --- a/sugar/graphics/toggletoolbutton.py +++ b/sugar/graphics/toggletoolbutton.py @@ -47,6 +47,14 @@ class ToggleToolButton(gtk.ToggleToolButton): 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.ToggleToolButton.do_expose_event(self, event) 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) |