]> Pileus Git - ~andy/gtk/commitdiff
Left-align menu labels. (#393255, Michail Crayson)
authorMatthias Clasen <mclasen@redhat.com>
Sat, 6 Jan 2007 03:02:31 +0000 (03:02 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Sat, 6 Jan 2007 03:02:31 +0000 (03:02 +0000)
2007-01-05  Matthias Clasen  <mclasen@redhat.com>

        * gtk/gtknotebook.c (gtk_notebook_set_menu_label_text): Left-align
        menu labels.  (#393255, Michail Crayson)

svn path=/trunk/; revision=17095

ChangeLog
gtk/gtknotebook.c

index d229326309d743fa1bf4e10e9b4ed5668d0ee17d..9af4cbce4c2b283da255a219e42af94bcd06eb0d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2007-01-05  Matthias Clasen  <mclasen@redhat.com>
+
+       * gtk/gtknotebook.c (gtk_notebook_set_menu_label_text): Left-align
+       menu labels.  (#393255, Michail Crayson)
+
 2007-01-05  Kristian Rietveld  <kris@gtk.org>
 
        * gtk/gtktreeview.c (gtk_tree_view_dy_to_top_row): handle tree
index c8edb873df3f560340dc372096610fc6d7205d5a..8b64b93f4c3cf42e2057eb2ca9bff1d51a6d2384 100644 (file)
@@ -7014,7 +7014,10 @@ gtk_notebook_set_menu_label_text (GtkNotebook *notebook,
   g_return_if_fail (GTK_IS_NOTEBOOK (notebook));
 
   if (menu_text)
-    menu_label = gtk_label_new (menu_text);
+    {
+      menu_label = gtk_label_new (menu_text);
+      gtk_misc_set_alignment (GTK_MISC (menu_label), 0.0, 0.5);
+    }
   gtk_notebook_set_menu_label (notebook, child, menu_label);
   gtk_widget_child_notify (child, "menu-label");
 }