diff options
author | Gonzalo Odiard <godiard@sugarlabs.org> | 2010-12-06 15:59:30 (GMT) |
---|---|---|
committer | Gonzalo Odiard <godiard@sugarlabs.org> | 2010-12-06 15:59:30 (GMT) |
commit | 29d0d8390e880ea3f098648249f0f7f627da6655 (patch) | |
tree | c273327adef9862f39b144dc1db8184484c35360 | |
parent | 1bb7aa0308f99ec5489eb14117afa448db8ca4db (diff) |
Change the signal used to get the color update
-rw-r--r-- | toolbox.py | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -85,9 +85,9 @@ try: def __init__(self, activity): ColorToolButton.__init__(self) self._activity = activity - self.connect('color-set', self._color_button_cb) + self.connect('notify::color', self._color_button_cb) - def _color_button_cb(self, widget): + def _color_button_cb(self, widget, pspec): color = self.get_color() self.set_fill_color(color) @@ -105,9 +105,9 @@ try: def __init__(self, activity): ColorToolButton.__init__(self) self._activity = activity - self.connect('color-set', self._color_button_cb) + self.connect('notify::color', self._color_button_cb) - def _color_button_cb(self, widget): + def _color_button_cb(self, widget, pspec): color = self.get_color() self.set_stroke_color(color) |