From 29d0d8390e880ea3f098648249f0f7f627da6655 Mon Sep 17 00:00:00 2001 From: Gonzalo Odiard Date: Mon, 06 Dec 2010 15:59:30 +0000 Subject: Change the signal used to get the color update --- 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) -- cgit v0.9.1