nikawhite pushed a commit to branch master.

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

commit 3f0386f3f05d1f584a5eced41a040efee54705bf
Author: Mykyta Biliavskyi <[email protected]>
Date:   Tue Jul 26 21:37:25 2016 +0300

    Workspace: init "img" variable.
---
 src/bin/ui/workspace/workspace.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/bin/ui/workspace/workspace.c b/src/bin/ui/workspace/workspace.c
index 3b55087..3a4ef29 100644
--- a/src/bin/ui/workspace/workspace.c
+++ b/src/bin/ui/workspace/workspace.c
@@ -427,6 +427,7 @@ _zoom_controls_add(Workspace_Data *wd)
 #if HAVE_TIZEN
    elm_object_style_set(wd->toolbar.zoom.fit, "fit");
 #else
+   Evas_Object *img;
    IMAGE_ADD_NEW(wd->toolbar.zoom.fit, img, "icon", "fit")
    elm_object_part_content_set(wd->toolbar.zoom.fit, NULL, img);
 #endif
@@ -453,7 +454,6 @@ _zoom_controls_add(Workspace_Data *wd)
    evas_object_smart_callback_add(btn, "clicked", _btn_plus_zoom_cb, wd);
    elm_object_part_content_set(wd->toolbar.zoom.slider, "elm.swallow.end", 
btn);
 #else
-   Evas_Object *img;
    IMAGE_ADD_NEW(wd->toolbar.zoom.slider, img, "icon", "scale_smaller")
    elm_object_part_content_set(wd->toolbar.zoom.slider, "elm.swallow.icon", 
img);
    IMAGE_ADD_NEW(wd->toolbar.zoom.slider, img, "icon", "scale_larger")

-- 


Reply via email to