Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGonzalo Odiard <godiard@sugarlabs.org>2010-12-06 15:59:30 (GMT)
committer Gonzalo Odiard <godiard@sugarlabs.org>2010-12-06 15:59:30 (GMT)
commit29d0d8390e880ea3f098648249f0f7f627da6655 (patch)
treec273327adef9862f39b144dc1db8184484c35360
parent1bb7aa0308f99ec5489eb14117afa448db8ca4db (diff)
Change the signal used to get the color update
-rw-r--r--toolbox.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/toolbox.py b/toolbox.py
index 9ef1a89..d7daae0 100644
--- a/toolbox.py
+++ b/toolbox.py
@@ -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)