[Xfce4-commits] <midori:master> Adjust input mode of numeric property proxies on Hildon
Christian Dywan
noreply at xfce.org
Sun Nov 29 14:12:07 CET 2009
Updating branch refs/heads/master
to 35789798b104661cf7d6c154646baca554067538 (commit)
from 206fee346bb0dee2043a48bbd849ebc126d8f107 (commit)
commit 35789798b104661cf7d6c154646baca554067538
Author: Christian Dywan <christian at twotoasts.de>
Date: Sat Nov 28 19:45:02 2009 +0100
Adjust input mode of numeric property proxies on Hildon
katze/katze-utils.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/katze/katze-utils.c b/katze/katze-utils.c
index 5f60042..452ed54 100644
--- a/katze/katze-utils.c
+++ b/katze/katze-utils.c
@@ -737,6 +737,10 @@ katze_property_proxy (gpointer object,
widget = gtk_spin_button_new_with_range (
G_PARAM_SPEC_INT (pspec)->minimum,
G_PARAM_SPEC_INT (pspec)->maximum, 1);
+ #if HAVE_HILDON
+ hildon_gtk_entry_set_input_mode (GTK_ENTRY (widget),
+ HILDON_GTK_INPUT_MODE_NUMERIC);
+ #endif
/* Keep it narrow, 5 digits are usually fine */
gtk_entry_set_width_chars (GTK_ENTRY (widget), 5);
gtk_spin_button_set_value (GTK_SPIN_BUTTON (widget), value);
More information about the Xfce4-commits
mailing list