Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/toolbox.py
diff options
context:
space:
mode:
Diffstat (limited to 'toolbox.py')
-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)