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-07-16 17:16:35 (GMT)
committer mascha@ma-scha.de <mascha@ma-scha.de@8f060a39-251c-0410-b1f3-431655927647>2008-07-16 17:16:35 (GMT)
commit2a71aa2f81f3fedba493523896f0ba0149a108d1 (patch)
tree9508da78bac930cda97d7f14ecfd597ac03543f9 /src/TextThought.py
parent116e38a7514ea39fad483230bbc5f300578a9429 (diff)
o fix if statement to use correct foreground var
git-svn-id: http://labyrinth.googlecode.com/svn/trunk@338 8f060a39-251c-0410-b1f3-431655927647
Diffstat (limited to 'src/TextThought.py')
-rw-r--r--src/TextThought.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/TextThought.py b/src/TextThought.py
index 6c5eb89..8f1c70a 100644
--- a/src/TextThought.py
+++ b/src/TextThought.py
@@ -336,10 +336,10 @@ class TextThought (BaseThought.BaseThought):
context.stroke ()
(textx, texty) = (self.text_location[0], self.text_location[1])
- if (self.foreground):
+ if (self.foreground_color):
r, g, b = utils.gtk_to_cairo_color(self.foreground_color)
else:
- r, g ,b = utils.gtk_to_cairo_color(utils.default_colors["fg"])
+ r, g ,b = utils.gtk_to_cairo_color(utils.default_colors["text"])
context.set_source_rgb (r, g, b)
context.move_to (textx, texty)
context.show_layout (self.layout)