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.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/toolbox.py b/toolbox.py
index 8d58306..b5d1e1c 100644
--- a/toolbox.py
+++ b/toolbox.py
@@ -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