[gtk+/wip/baseline2] GtkButton: Baseline align butttons



commit aeab1182895f6f88f7cc22fcd66a0ea86b27ea14
Author: Alexander Larsson <alexl redhat com>
Date:   Tue Mar 26 10:58:12 2013 +0100

    GtkButton: Baseline align butttons

 gtk/gtkbutton.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkbutton.c b/gtk/gtkbutton.c
index d0b5711..4189fc9 100644
--- a/gtk/gtkbutton.c
+++ b/gtk/gtkbutton.c
@@ -1157,6 +1157,7 @@ gtk_button_construct_child (GtkButton *button)
       else
        box = gtk_box_new (GTK_ORIENTATION_VERTICAL, image_spacing);
 
+      gtk_widget_set_valign (image, GTK_ALIGN_BASELINE);
       gtk_widget_set_valign (box, GTK_ALIGN_BASELINE);
 
       if (priv->align_set)


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