[gtk+/wip/baseline3: 16/17] GtkDialog: Baseline align buttons in action area



commit 4ad55c3488408608564212f01b7924318b60b137
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]