Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/src/TextThought.py
diff options
context:
space:
mode:
authorGary Martin <gary@garycmartin.com>2009-04-10 16:31:30 (GMT)
committer Gary Martin <gary@garycmartin.com>2009-04-10 16:31:30 (GMT)
commit46be59fdba4ff3f75f988a8fe9ff19e452fe43a3 (patch)
treedf0b7a9ab964955e58438bf74eba1a2a4e607014 /src/TextThought.py
parent64a2ceed43a9730f3262cb71a5b3b3db43018657 (diff)
Center align thought text (only visible in multi-line thoughts).
Diffstat (limited to 'src/TextThought.py')
-rw-r--r--src/TextThought.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/TextThought.py b/src/TextThought.py
index 97a5f8d..38b0ca7 100644
--- a/src/TextThought.py
+++ b/src/TextThought.py
@@ -341,6 +341,7 @@ class TextThought (ResizableThought):
else:
r, g ,b = utils.gtk_to_cairo_color(utils.default_colors["text"])
context.set_source_rgb (r, g, b)
+ self.layout.set_alignment(pango.ALIGN_CENTER)
context.move_to (textx, texty)
context.show_layout (self.layout)
if self.editing: