zmike pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=3b3889bdb5da9b90612e95b159f2b90baca5fc2e

commit 3b3889bdb5da9b90612e95b159f2b90baca5fc2e
Author: WooHyun Jung <wh0705.j...@samsung.com>
Date:   Fri Aug 30 08:42:41 2019 -0400

    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
---
 src/bin/elementary/test_ui_slider.c | 5 +++--
 1 file 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);
 }
 

-- 


Reply via email to