From 35789798b104661cf7d6c154646baca554067538 Mon Sep 17 00:00:00 2001 From: Christian Dywan Date: Sat, 28 Nov 2009 19:45:02 +0100 Subject: [PATCH] Adjust input mode of numeric property proxies on Hildon --- katze/katze-utils.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/katze/katze-utils.c b/katze/katze-utils.c index 5f600427..452ed547 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); -- 2.39.5