diff options
author | Gonzalo Odiard <godiard@sugarlabs.org> | 2010-12-09 12:25:12 (GMT) |
---|---|---|
committer | Gonzalo Odiard <godiard@sugarlabs.org> | 2010-12-09 12:25:12 (GMT) |
commit | 63cc6a3ddd463480f3bfa963ca107797688213cd (patch) | |
tree | d2975dac33ac631bb9f3f6de7e2aa2ed0236c3a3 | |
parent | f632bff62eeea7dff43823fdda92f278378e4cf2 (diff) |
Change the signal used to update the color.
Author: Simon Schampijer <simon@schampijer.de>
-rw-r--r-- | toolbar.py | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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), |