Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/src/sugar/graphics/palette.py
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@localhost.localdomain>2008-05-23 15:37:04 (GMT)
committer Marco Pesenti Gritti <marco@localhost.localdomain>2008-05-23 15:37:04 (GMT)
commitbbd3404310e40821dbdfe5e6dba9d63be7fd94a5 (patch)
treee18750982395a4c4cc5ec25bda4041abe4db5d76 /src/sugar/graphics/palette.py
parent685a9e3462564a9d7000ffddeb5c6b936881615f (diff)
Hookup the new palette creation in the toolbuttons.
Diffstat (limited to 'src/sugar/graphics/palette.py')
-rw-r--r--src/sugar/graphics/palette.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/sugar/graphics/palette.py b/src/sugar/graphics/palette.py
index 1df2a3b..f8ed0a3 100644
--- a/src/sugar/graphics/palette.py
+++ b/src/sugar/graphics/palette.py
@@ -724,13 +724,14 @@ class Invoker(gobject.GObject):
def __init__(self, parent):
gobject.GObject.__init__(self)
+ self.parent = parent
+
self._screen_area = gtk.gdk.Rectangle(0, 0, gtk.gdk.screen_width(),
gtk.gdk.screen_height())
self._position_hint = self.ANCHORED
self._cursor_x = -1
self._cursor_y = -1
self._palette = None
- self._parent = parent
def _get_position_for_alignment(self, alignment, palette_dim):
palette_halign = alignment[0]