]> spindle.queued.net Git - midori/commitdiff
Adjust input mode of numeric property proxies on Hildon
authorChristian Dywan <christian@twotoasts.de>
Sat, 28 Nov 2009 18:45:02 +0000 (19:45 +0100)
committerChristian Dywan <christian@twotoasts.de>
Sun, 29 Nov 2009 13:09:28 +0000 (14:09 +0100)
katze/katze-utils.c

index 5f600427fdaf85fa5845f92eca25dbe379a81224..452ed547f3268813154a7cff49b1801433243921 100644 (file)
@@ -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);