Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/Area.py
diff options
context:
space:
mode:
Diffstat (limited to 'Area.py')
-rw-r--r--Area.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/Area.py b/Area.py
index 082b026..6ab5fa2 100644
--- a/Area.py
+++ b/Area.py
@@ -1112,7 +1112,9 @@ class Area(Gtk.DrawingArea):
green = color.green / 65535.0
blue = color.blue / 65535.0
self.tool['cairo_stroke_color'] = (red, green, blue, alpha)
- self.activity.textview.modify_text(Gtk.StateType.NORMAL, color)
+ rgba = Gdk.RGBA()
+ rgba.red, rgba.green, rgba.blue, rgba.alpha = red, green, blue, alpha
+ self.activity.textview.override_color(Gtk.StateFlags.NORMAL, rgba)
def set_alpha(self, alpha):
"""