[gthumb] extensions list: fixed label alignment



commit 849a053ae3de0941bd5b9dac17d04e2b37c839d6
Author: Paolo Bacchilega <paobac src gnome org>
Date:   Tue Dec 23 12:14:40 2014 +0100

    extensions list: fixed label alignment

 gthumb/dlg-preferences-extensions.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/gthumb/dlg-preferences-extensions.c b/gthumb/dlg-preferences-extensions.c
index f832aea..2a20d97 100644
--- a/gthumb/dlg-preferences-extensions.c
+++ b/gthumb/dlg-preferences-extensions.c
@@ -461,13 +461,15 @@ create_extensions_row (GthExtensionDescription    *description,
        label_box = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
 
        label = gtk_label_new (description->name);
-       gtk_widget_set_valign (label, 0.5);
+       gtk_widget_set_halign (label, GTK_ALIGN_START);
+       gtk_widget_set_valign (label, GTK_ALIGN_CENTER);
        gtk_label_set_ellipsize (GTK_LABEL (label), PANGO_ELLIPSIZE_END);
        gtk_style_context_add_class (gtk_widget_get_style_context (label), "extension-name");
        gtk_box_pack_start (GTK_BOX (label_box), label, FALSE, FALSE, 0);
 
        label = gtk_label_new (description->description);
-       gtk_widget_set_valign (label, 0.5);
+       gtk_widget_set_halign (label, GTK_ALIGN_START);
+       gtk_widget_set_valign (label, GTK_ALIGN_CENTER);
        gtk_label_set_ellipsize (GTK_LABEL (label), PANGO_ELLIPSIZE_END);
        gtk_style_context_add_class (gtk_widget_get_style_context (label), "extension-description");
        gtk_box_pack_start (GTK_BOX (label_box), label, FALSE, FALSE, 0);


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