Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/src/sugar3/graphics/radiotoolbutton.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/sugar3/graphics/radiotoolbutton.py')
-rw-r--r--src/sugar3/graphics/radiotoolbutton.py11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/sugar3/graphics/radiotoolbutton.py b/src/sugar3/graphics/radiotoolbutton.py
index fa910fd..a51a39a 100644
--- a/src/sugar3/graphics/radiotoolbutton.py
+++ b/src/sugar3/graphics/radiotoolbutton.py
@@ -132,12 +132,7 @@ class RadioToolButton(Gtk.RadioToolButton):
def do_draw(self, cr):
child = self.get_child()
- allocation = self.get_allocation()
-
if self.palette and self.palette.is_up():
- invoker = self.palette.props.invoker
- invoker.draw_rectangle(cr, self.palette)
-
allocation = self.get_allocation()
# draw a black background, has been done by the engine before
cr.set_source_rgb(0, 0, 0)
@@ -146,6 +141,12 @@ class RadioToolButton(Gtk.RadioToolButton):
Gtk.RadioToolButton.do_draw(self, cr)
+ if self.palette and self.palette.is_up():
+ invoker = self.palette.props.invoker
+ invoker.draw_rectangle(cr, self.palette)
+
+ return False
+
def get_hide_tooltip_on_click(self):
return self._hide_tooltip_on_click