summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Thurman <tthurman@gnome.org>2009-10-27 17:34:43 -0400
committerThomas Thurman <tthurman@gnome.org>2009-10-27 17:34:43 -0400
commit179cb4245bf4b9cf7df9be95a27bfcb191ac6ec6 (patch)
tree7e1b07dbf47014aa12c75bad69b7c9665498ffcf
parent4df5de9a4676fff9da8977fe34378c7d16c804e5 (diff)
downloadmetacity-179cb4245bf4b9cf7df9be95a27bfcb191ac6ec6.tar.gz
default to centring the text
-rw-r--r--src/ui/theme.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/ui/theme.c b/src/ui/theme.c
index 5cf5f3b8..15f61d98 100644
--- a/src/ui/theme.c
+++ b/src/ui/theme.c
@@ -387,11 +387,13 @@ cowbell_style_title_text (ccss_stylesheet_t *stylesheet,
pango_layout_set_alignment (layout, PANGO_ALIGN_RIGHT);
}
else
- /* FIXME: "align" contains garbage if it's undefined;
- * is there an easy way of checking?
- */
g_warning ("Unknown alignment: %s", align);
}
+ else
+ {
+ /* default to centring the text */
+ pango_layout_set_alignment (layout, PANGO_ALIGN_CENTER);
+ }
pango_layout_set_attributes (layout, attrs);