[gtk+/wip/baseline2] GtkDialog: Baseline align buttons in action area



commit 8535e32b8db71c0c580f7ca86f7598c8416d2754
Author: Alexander Larsson <alexl redhat com>
Date:   Tue Mar 26 11:46:55 2013 +0100

    GtkDialog: Baseline align buttons in action area

 gtk/gtkdialog.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkdialog.c b/gtk/gtkdialog.c
index b88ca5f..dfa2ad6 100644
--- a/gtk/gtkdialog.c
+++ b/gtk/gtkdialog.c
@@ -787,6 +787,7 @@ gtk_dialog_add_button (GtkDialog   *dialog,
   button = gtk_button_new_from_stock (button_text);
 
   gtk_widget_set_can_default (button, TRUE);
+  gtk_widget_set_valign (button, GTK_ALIGN_BASELINE);
 
   gtk_widget_show (button);
 


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