summaryrefslogtreecommitdiff
path: root/gtk/gtkspinbutton.c
diff options
context:
space:
mode:
authorCosimo Cecchi <cosimoc@gnome.org>2011-02-28 15:45:51 -0500
committerCosimo Cecchi <cosimoc@gnome.org>2011-03-03 17:48:25 -0500
commit64ef11985bb11de3e1369cfa3d187d274096cf6e (patch)
tree3ac4452db8ba84b05b730db447659c8392d199c1 /gtk/gtkspinbutton.c
parentfa4fb6724c4afbd59535148303bc5ba8265f4d70 (diff)
downloadgtk+-64ef11985bb11de3e1369cfa3d187d274096cf6e.tar.gz
spinbutton: center-align by default
Diffstat (limited to 'gtk/gtkspinbutton.c')
-rw-r--r--gtk/gtkspinbutton.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gtk/gtkspinbutton.c b/gtk/gtkspinbutton.c
index 3d0875390a..b852b6c458 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);
}