[gtk+/theming: 5/14] spinbutton: center-align by default
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/theming: 5/14] spinbutton: center-align by default
- Date: Thu, 3 Mar 2011 14:26:30 +0000 (UTC)
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]