[gtk+/theming: 5/14] spinbutton: center-align by default



commit 4c78278ca0c25f9db32216cdb58a0495463ad9c1
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Mon Feb 28 15:45:51 2011 -0500

    spinbutton: center-align by default

 gtk/gtkspinbutton.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkspinbutton.c b/gtk/gtkspinbutton.c
index 6bc78e0..aa6c77f 100644
--- a/gtk/gtkspinbutton.c
+++ b/gtk/gtkspinbutton.c
@@ -637,6 +637,8 @@ gtk_spin_button_init (GtkSpinButton *spin_button)
   gtk_spin_button_set_adjustment (spin_button,
                                   gtk_adjustment_new (0, 0, 0, 0, 0, 0));
 
+  gtk_entry_set_alignment (GTK_ENTRY (spin_button), 0.5);
+
   context = gtk_widget_get_style_context (GTK_WIDGET (spin_button));
   gtk_style_context_add_class (context, GTK_STYLE_CLASS_SPINBUTTON);
 }



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