Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/src/TextThought.py
diff options
context:
space:
mode:
authormascha@ma-scha.de <mascha@ma-scha.de@8f060a39-251c-0410-b1f3-431655927647>2008-03-21 16:29:45 (GMT)
committer mascha@ma-scha.de <mascha@ma-scha.de@8f060a39-251c-0410-b1f3-431655927647>2008-03-21 16:29:45 (GMT)
commite78050dc7ffc9dc6ded6ae451ddb94b497159dbb (patch)
tree918a5e64755a2b3fd64b3c4e8a13bc111ff76775 /src/TextThought.py
parentafed1fd8dd2a2a6fe44115f6d8a311e0fd044d2f (diff)
2008-03-21 Martin Schaaf <mascha@ma-scha.de>
* src/DrawingThought.py * src/MainWindow.py * src/utils.py * src/ImageThought.py * src/TextThought.py o add svg export (patch by Matthias Vogelgesang) git-svn-id: http://labyrinth.googlecode.com/svn/trunk@195 8f060a39-251c-0410-b1f3-431655927647
Diffstat (limited to 'src/TextThought.py')
-rw-r--r--src/TextThought.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/TextThought.py b/src/TextThought.py
index 8cd0f6e..ae20b89 100644
--- a/src/TextThought.py
+++ b/src/TextThought.py
@@ -317,7 +317,8 @@ class TextThought (BaseThought.BaseThought):
context.line_to (self.lr[0]-5, self.ul[1])
context.stroke ()
- context.set_source_color (self.foreground_color)
+ r,g,b = utils.gtk_to_cairo_color(self.foreground_color)
+ context.set_source_rgb (r, g, b)
context.move_to (self.text_location[0], self.text_location[1])
context.show_layout (self.layout)
if self.editing:
@@ -811,7 +812,8 @@ class TextThought (BaseThought.BaseThought):
utils.export_thought_outline (context, self.ul, self.lr, self.background_color, self.am_selected, self.am_primary, utils.STYLE_NORMAL,
(move_x, move_y))
- context.set_source_color (self.foreground_color)
+ r,g,b = utils.gtk_to_cairo_color (self.foreground_color)
+ context.set_source_rgb (r, g, b)
context.move_to (self.text_location[0]+move_x, self.text_location[1]+move_y)
context.show_layout (self.layout)
context.set_source_rgb (0,0,0)