diff options
author | Marco 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) |
commit | bbd3404310e40821dbdfe5e6dba9d63be7fd94a5 (patch) | |
tree | e18750982395a4c4cc5ec25bda4041abe4db5d76 /src/sugar/graphics/palette.py | |
parent | 685a9e3462564a9d7000ffddeb5c6b936881615f (diff) |
Hookup the new palette creation in the toolbuttons.
Diffstat (limited to 'src/sugar/graphics/palette.py')
-rw-r--r-- | src/sugar/graphics/palette.py | 3 |
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] |