Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/src/sugar/graphics/toggletoolbutton.py
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@localhost.localdomain>2008-05-23 16:00:47 (GMT)
committer Marco Pesenti Gritti <marco@localhost.localdomain>2008-05-23 16:00:47 (GMT)
commitce235e7405a4ebe5012d281ab6b69a8ee60bd40f (patch)
tree688b9cb1d7716c81a08ed9970c7db28d455d81c4 /src/sugar/graphics/toggletoolbutton.py
parentbbd3404310e40821dbdfe5e6dba9d63be7fd94a5 (diff)
Finish to hook up the new palette stuff.
Diffstat (limited to 'src/sugar/graphics/toggletoolbutton.py')
-rw-r--r--src/sugar/graphics/toggletoolbutton.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/sugar/graphics/toggletoolbutton.py b/src/sugar/graphics/toggletoolbutton.py
index 4facd25..0f663a6 100644
--- a/src/sugar/graphics/toggletoolbutton.py
+++ b/src/sugar/graphics/toggletoolbutton.py
@@ -63,9 +63,9 @@ class ToggleToolButton(gtk.ToggleToolButton):
allocation = self.get_allocation()
child = self.get_child()
- if self._palette and self._palette.is_up():
- invoker = self._palette.props.invoker
- invoker.draw_rectangle(event, self._palette)
+ if self.palette and self.palette.is_up():
+ invoker = self.palette.props.invoker
+ invoker.draw_rectangle(event, self.palette)
elif child.state == gtk.STATE_PRELIGHT:
child.style.paint_box(event.window, gtk.STATE_PRELIGHT,
gtk.SHADOW_NONE, event.area,