Adjust input mode of numeric property proxies on Hildon
This commit is contained in:
parent
206fee346b
commit
35789798b1
1 changed files with 4 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue