[gnome-terminal] Center tab labels



commit 468a18f5e21b42ee0efedf3d86203fbc4e02807e
Author: William Jon McCann <william jon mccann gmail com>
Date:   Fri Jan 24 09:30:21 2014 -0500

    Center tab labels
    
    https://bugzilla.gnome.org/show_bug.cgi?id=722918

 src/terminal-tab-label.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/terminal-tab-label.c b/src/terminal-tab-label.c
index 9cf5507..90bab28 100644
--- a/src/terminal-tab-label.c
+++ b/src/terminal-tab-label.c
@@ -185,7 +185,8 @@ terminal_tab_label_constructor (GType type,
   gtk_box_set_spacing (GTK_BOX (hbox), SPACING);
 
   priv->label = label = gtk_label_new (NULL);
-  gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5);
+  gtk_widget_set_halign (label, GTK_ALIGN_CENTER);
+  gtk_widget_set_valign (label, GTK_ALIGN_BASELINE);
   gtk_misc_set_padding (GTK_MISC (label), 0, 0);
   gtk_label_set_ellipsize (GTK_LABEL (label), PANGO_ELLIPSIZE_END);
   gtk_label_set_single_line_mode (GTK_LABEL (label), TRUE);


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