diff options
author | WooHyun Jung <wh0705.jung@samsung.com> | 2019-08-30 08:42:41 -0400 |
---|---|---|
committer | Mike Blumenkrantz <zmike@samsung.com> | 2019-08-30 08:42:41 -0400 |
commit | 3b3889bdb5da9b90612e95b159f2b90baca5fc2e (patch) | |
tree | 083160478a63373dd026a0542759dc23fc2254b3 | |
parent | d6156d23d8fb2f02b4582da714b8b0ba089fe36a (diff) | |
download | efl-3b3889bdb5da9b90612e95b159f2b90baca5fc2e.tar.gz |
test_ui_slder: remove meaningless printf when reaching the limit
Summary:
Without new internal min/max properties, this may be the only way
to not give redundant printing of the meaningless value.
@ref T8188
Test Plan:
1. elementary_test
2. EFl.Ui.Slider
3. On the limit slider, move the knob above the limit
Reviewers: bu5hm4n
Reviewed By: bu5hm4n
Subscribers: cedric, #reviewers, #committers
Tags: #efl
Maniphest Tasks: T8188
Differential Revision: https://phab.enlightenment.org/D9793
-rw-r--r-- | src/bin/elementary/test_ui_slider.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/bin/elementary/test_ui_slider.c b/src/bin/elementary/test_ui_slider.c index 8704a08746..36155e9e5d 100644 --- a/src/bin/elementary/test_ui_slider.c +++ b/src/bin/elementary/test_ui_slider.c @@ -11,8 +11,9 @@ _slider_changed_cb(void *data EINA_UNUSED, const Efl_Event *ev) val = efl_ui_range_value_get(ev->object); - printf("val = %f\n", val); - if (val > 100) + if (val <= 100) + printf("val = %f\n", val); + else efl_ui_range_value_set(ev->object, 100); } |