[gedit] Center tab labels



commit b8eee9193d42432cd8906d79194b7791d00c49e5
Author: William Jon McCann <william jon mccann gmail com>
Date:   Thu Oct 17 15:51:41 2013 +0200

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

 gedit/gedit-tab-label.c |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/gedit/gedit-tab-label.c b/gedit/gedit-tab-label.c
index d44061f..bc344e1 100644
--- a/gedit/gedit-tab-label.c
+++ b/gedit/gedit-tab-label.c
@@ -302,15 +302,15 @@ gedit_tab_label_init (GeditTabLabel *tab_label)
        gtk_box_pack_start (GTK_BOX (hbox), icon, FALSE, FALSE, 0);
        tab_label->priv->icon = icon;
 
+       dummy_label = gtk_label_new ("  ");
+       gtk_box_pack_start (GTK_BOX (hbox), dummy_label, FALSE, FALSE, 0);
+
        label = gtk_label_new ("");
-       gtk_widget_set_halign (label, GTK_ALIGN_START);
+       gtk_widget_set_halign (label, GTK_ALIGN_CENTER);
        gtk_misc_set_padding (GTK_MISC (label), 0, 0);
-       gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 0);
+       gtk_box_pack_start (GTK_BOX (hbox), label, TRUE, TRUE, 0);
        tab_label->priv->label = label;
 
-       dummy_label = gtk_label_new ("");
-       gtk_box_pack_start (GTK_BOX (hbox), dummy_label, TRUE, TRUE, 0);
-
        gtk_widget_show (ebox);
        gtk_widget_show (hbox);
        gtk_widget_show (close_button);


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