rimmed pushed a commit to branch master.

http://git.enlightenment.org/tools/eflete.git/commit/?id=ac2a4570b7c66dcd9afb33b54bc96ca04eb8c578

commit ac2a4570b7c66dcd9afb33b54bc96ca04eb8c578
Author: Andrii Kroitor <an.kroi...@samsung.com>
Date:   Tue Mar 29 09:01:45 2016 +0300

    workspace: fix workspace_zoom_factor_set
    
    Fixes T3362
---
 src/bin/ui/workspace/workspace.c | 11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)

diff --git a/src/bin/ui/workspace/workspace.c b/src/bin/ui/workspace/workspace.c
index a42f0f6..1bb3cf3 100644
--- a/src/bin/ui/workspace/workspace.c
+++ b/src/bin/ui/workspace/workspace.c
@@ -1165,10 +1165,13 @@ workspace_zoom_factor_set(Evas_Object *obj, double 
factor)
 {
    WS_DATA_GET(obj);
 
-   wd->zoom_factor = factor;
-   elm_slider_value_set(wd->toolbar.zoom.slider, factor * 100);
-   TODO("Fix elementary callbacks on changing value from code");
-   _slider_zoom_cb(wd, wd->toolbar.zoom.slider, NULL);
+   if (!elm_object_disabled_get(wd->toolbar.zoom.slider))
+     {
+        wd->zoom_factor = factor;
+        elm_slider_value_set(wd->toolbar.zoom.slider, factor * 100);
+        TODO("Fix elementary callbacks on changing value from code");
+        _slider_zoom_cb(wd, wd->toolbar.zoom.slider, NULL);
+     }
 }
 
 double

-- 


Reply via email to