[gtk+] spinbutton: center-align by default
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] spinbutton: center-align by default
- Date: Thu, 3 Mar 2011 22:49:14 +0000 (UTC)
commit 64ef11985bb11de3e1369cfa3d187d274096cf6e
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 3d08753..b852b6c 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]