rimmed pushed a commit to branch master.

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

commit d1f4f0a248697138216601a428cfb309f0f3531d
Author: Vitalii Vorobiov <vi.vorob...@samsung.com>
Date:   Thu Apr 28 20:17:15 2016 +0300

    tabs: update project info on switch between top tabs
    
    it doesn't hide "project info" when switching between image editor and home 
tab,
    so instead it was important to force it to be updated.
    
    Fixes T3564
---
 src/bin/ui/tab_home_info.c | 9 ++-------
 src/bin/ui/tabs.c          | 2 ++
 src/bin/ui/tabs_private.h  | 3 +++
 3 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/src/bin/ui/tab_home_info.c b/src/bin/ui/tab_home_info.c
index b419a3d..233f12d 100644
--- a/src/bin/ui/tab_home_info.c
+++ b/src/bin/ui/tab_home_info.c
@@ -61,11 +61,8 @@ _info_set(Eina_Bool disabled, const char *name, const char 
*path,
    eina_strbuf_free(buf);
 }
 
-static void
-_show(void *data __UNUSED__,
-      Evas *e __UNUSED__,
-      Evas_Object *obj __UNUSED__,
-      void *event_info __UNUSED__)
+void
+_tab_project_update()
 {
    Eina_Stringshare *authors, *version, *license, *comment;
 
@@ -122,7 +119,5 @@ _tab_project_info_add(void)
    evas_object_smart_callback_add(tab_info.meta.licenses, "changed,user", 
_validate, NULL);
    evas_object_smart_callback_add(tab_info.meta.comment, "changed,user", 
_validate, NULL);
 
-   evas_object_event_callback_add(tab_info.layout, EVAS_CALLBACK_SHOW, _show, 
NULL);
-
    return tab_info.layout;
 }
diff --git a/src/bin/ui/tabs.c b/src/bin/ui/tabs.c
index 92caccb..77db89f 100644
--- a/src/bin/ui/tabs.c
+++ b/src/bin/ui/tabs.c
@@ -198,6 +198,7 @@ _home_tab_change(void *data,
 {
    evas_object_hide(elm_layout_content_unset(tabs.menu.content, NULL));
    elm_layout_content_set(tabs.menu.content, NULL, data);
+   _tab_project_update();
 }
 
 static void
@@ -1105,6 +1106,7 @@ tabs_menu_tab_open(Tabs_Menu view)
       case TAB_LAST:
          elm_toolbar_item_selected_set(tabs.menu.item_home, true);
          elm_layout_content_set(tabs.layout, NULL, tabs.menu.content);
+         _tab_project_update();
       default:
          break;
      }
diff --git a/src/bin/ui/tabs_private.h b/src/bin/ui/tabs_private.h
index e0f771c..a717d41 100644
--- a/src/bin/ui/tabs_private.h
+++ b/src/bin/ui/tabs_private.h
@@ -68,6 +68,9 @@ Evas_Object *
 _tab_project_info_add(void);
 
 void
+_tab_project_update(void);
+
+void
 elipsis_btn_add(Evas_Object *entry, Evas_Smart_Cb cb_func, void *data);
 
 Eina_Bool

-- 


Reply via email to