rimmed pushed a commit to branch master.

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

commit 9f3addd6c1a2843d47b9b4e915d0febd8c04a529
Author: Vyacheslav Reutskiy <v.reuts...@samsung.com>
Date:   Tue Mar 29 14:03:19 2016 +0300

    menu: emit signals for zomm in/out instead separatly logic
    
    Change-Id: I0322fe26c6baed0979dbc0f8af7ca66c1809477a
---
 src/bin/ui/menu.c | 10 ++--------
 1 file changed, 2 insertions(+), 8 deletions(-)

diff --git a/src/bin/ui/menu.c b/src/bin/ui/menu.c
index a1278d7..94c3df5 100644
--- a/src/bin/ui/menu.c
+++ b/src/bin/ui/menu.c
@@ -136,16 +136,10 @@ _menu_cb(void *data __UNUSED__,
          /* preferences_window_add(ap.project); */
          break;
       case MENU_VIEW_WORKSPACE_ZOOM_IN:
-           {
-              double current_factor = 
workspace_zoom_factor_get(tabs_current_workspace_get());
-              workspace_zoom_factor_set(tabs_current_workspace_get(), 
current_factor + 0.1);
-           }
+         evas_object_smart_callback_call(ap.win, SIGNAL_SHORTCUT_ZOOM_IN, 
NULL);
          break;
       case MENU_VIEW_WORKSPACE_ZOOM_OUT:
-           {
-              double current_factor = 
workspace_zoom_factor_get(tabs_current_workspace_get());
-              workspace_zoom_factor_set(tabs_current_workspace_get(), 
current_factor - 0.1);
-           }
+         evas_object_smart_callback_call(ap.win, SIGNAL_SHORTCUT_ZOOM_OUT, 
NULL);
         break;
       case MENU_VIEW_WORKSPACE_ZOOM_RESET:
          evas_object_smart_callback_call(ap.win, SIGNAL_SHORTCUT_ZOOM_RESET, 
NULL);

-- 


Reply via email to