[metacity/cowbell] default to centring the text



commit 179cb4245bf4b9cf7df9be95a27bfcb191ac6ec6
Author: Thomas Thurman <tthurman gnome org>
Date:   Tue Oct 27 17:34:43 2009 -0400

    default to centring the text

 src/ui/theme.c |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/src/ui/theme.c b/src/ui/theme.c
index 5cf5f3b..15f61d9 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);
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]