diff options
Diffstat (limited to 'toolbox.py')
-rw-r--r-- | toolbox.py | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -336,6 +336,12 @@ class ToolsToolbarBuilder(): self._activity.area.set_stroke_color(new_color) self.properties['stroke color'] = new_color + if isinstance(new_color, unicode): + new_color = gtk.gdk.Color(new_color) + self.properties['cairo_stroke_color'] = (new_color.red_float, + new_color.green_float, + new_color.blue_float, 0.3) + def _on_signal_undo_cb(self, widget, data=None): self._verify_sensitive_buttons() @@ -378,6 +384,12 @@ class ButtonFillColor(ColorToolButton): self._activity.area.set_fill_color(new_color) self.properties['fill color'] = new_color + if isinstance(new_color, unicode): + new_color = gtk.gdk.Color(new_color) + self.properties['cairo_fill_color'] = (new_color.red_float, + new_color.green_float, + new_color.blue_float, 0.3) + def create_palette(self): self._palette = self.get_child().create_palette() color_palette_hbox = self._palette._picker_hbox |