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-09 12:25:12 (GMT)
committer Gonzalo Odiard <godiard@sugarlabs.org>2010-12-09 12:25:12 (GMT)
commit63cc6a3ddd463480f3bfa963ca107797688213cd (patch)
treed2975dac33ac631bb9f3f6de7e2aa2ed0236c3a3
parentf632bff62eeea7dff43823fdda92f278378e4cf2 (diff)
Change the signal used to update the color.
Author: Simon Schampijer <simon@schampijer.de>
-rw-r--r--toolbar.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/toolbar.py b/toolbar.py
index 33267db..0044936 100644
--- a/toolbar.py
+++ b/toolbar.py
@@ -312,7 +312,8 @@ class TextToolbar(gtk.Toolbar):
self._underline.show()
self._text_color = ColorToolButton()
- self._text_color_id = self._text_color.connect('color-set', self._text_color_cb)
+ self._text_color_id = self._text_color.connect('notify::color',
+ self._text_color_cb)
tool_item = gtk.ToolItem()
tool_item.add(self._text_color)
self.insert(tool_item, -1)
@@ -424,7 +425,7 @@ class TextToolbar(gtk.Toolbar):
def _color_cb(self, abi, r, g, b):
self._text_color.set_color(gtk.gdk.Color(r * 256, g * 256, b * 256))
- def _text_color_cb(self, button):
+ def _text_color_cb(self, button, pspec):
newcolor = self._text_color.get_color()
self._abiword_canvas.set_text_color(int(newcolor.red / 256.0),
int(newcolor.green / 256.0),