summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShilpa Singh <shilpa.singh@samsung.com>2015-12-07 15:28:32 -0800
committerCedric BAIL <cedric@osg.samsung.com>2015-12-07 16:39:40 -0800
commit9664f44d7cd8e6bc8253017da2c1d0ef8ccd3088 (patch)
treee9851fe8247a5226b4bbf50c074c30cd43e0b97f
parent2a85a53d142a44ac55a5ee7e838ea0f35e5a5b56 (diff)
spinner: add possibility to enter negative value.
Summary: Even if spinner's min max values range from -ve to +ve, it wasn't possible to enter -ve values in spinner. @fix T2915 Test Plan: 1. Launch Elementary Test 2. Launch spinner demo 3. Tap on the editable area of first spinner 4. Enter negative value '-' is not allowed to enter even though the min max value of spinner ranges from -5000 to +5000. Reviewers: CHAN, cedric Reviewed By: cedric Maniphest Tasks: T2915 Differential Revision: https://phab.enlightenment.org/D3403 Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
-rw-r--r--src/lib/elm_spinner.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/elm_spinner.c b/src/lib/elm_spinner.c
index 251a3778f..5fe0caa3f 100644
--- a/src/lib/elm_spinner.c
+++ b/src/lib/elm_spinner.c
@@ -429,9 +429,9 @@ _entry_filter_add(Evas_Object *obj)
429 elm_entry_markup_filter_remove(sd->ent, elm_entry_filter_accept_set, &digits_filter_data); 429 elm_entry_markup_filter_remove(sd->ent, elm_entry_filter_accept_set, &digits_filter_data);
430 430
431 if (sd->decimal_points > 0) 431 if (sd->decimal_points > 0)
432 digits_filter_data.accepted = ".0123456789"; 432 digits_filter_data.accepted = "-.0123456789";
433 else 433 else
434 digits_filter_data.accepted = "0123456789"; 434 digits_filter_data.accepted = "-0123456789";
435 435
436 elm_entry_markup_filter_append(sd->ent, elm_entry_filter_accept_set, &digits_filter_data); 436 elm_entry_markup_filter_append(sd->ent, elm_entry_filter_accept_set, &digits_filter_data);
437} 437}