Adjust input mode of numeric property proxies on Hildon

This commit is contained in:
Christian Dywan 2009-11-28 19:45:02 +01:00
parent 206fee346b
commit 35789798b1

View file

@ -737,6 +737,10 @@ katze_property_proxy (gpointer object,
widget = gtk_spin_button_new_with_range ( widget = gtk_spin_button_new_with_range (
G_PARAM_SPEC_INT (pspec)->minimum, G_PARAM_SPEC_INT (pspec)->minimum,
G_PARAM_SPEC_INT (pspec)->maximum, 1); 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 */ /* Keep it narrow, 5 digits are usually fine */
gtk_entry_set_width_chars (GTK_ENTRY (widget), 5); gtk_entry_set_width_chars (GTK_ENTRY (widget), 5);
gtk_spin_button_set_value (GTK_SPIN_BUTTON (widget), value); gtk_spin_button_set_value (GTK_SPIN_BUTTON (widget), value);