Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/sugar/graphics/palette.py
diff options
context:
space:
mode:
authorSimon Schampijer <simon@schampijer.de>2007-09-18 12:24:16 (GMT)
committer Simon Schampijer <simon@schampijer.de>2007-09-18 12:24:16 (GMT)
commit53f12652527f3e5249e6fb867e2a65f6406dc82b (patch)
tree94a6ad81b7adc0eeb67e442d9efbb35d7ef82aa0 /sugar/graphics/palette.py
parent0b9eb71046d3d13deba3dc2eee4eeb8a03bd9c77 (diff)
Handle the passing of the child of the toolitem to the WidgetInvoker in ToolInvoker, FrameWidgetInvoker
Diffstat (limited to 'sugar/graphics/palette.py')
-rw-r--r--sugar/graphics/palette.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/sugar/graphics/palette.py b/sugar/graphics/palette.py
index acc14f7..3873d38 100644
--- a/sugar/graphics/palette.py
+++ b/sugar/graphics/palette.py
@@ -668,6 +668,9 @@ class CanvasInvoker(Invoker):
return hippo.get_canvas_for_item(self._item).get_toplevel()
class ToolInvoker(WidgetInvoker):
+ def __init__(self, widget):
+ WidgetInvoker.__init__(self, widget.child)
+
def _get_alignments(self):
parent = self._widget.get_parent()
if parent is None: