rimmed pushed a commit to branch master.

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

commit cdec735e8e2d1d9a326633c5be972592cbc1d4c5
Author: Vitalii Vorobiov <vi.vorob...@samsung.com>
Date:   Fri Apr 15 14:22:28 2016 +0300

    tabs: call specific callback when not group tab is clicked
    
    It will poke history so it will clean up itself and genlist
    Currently it might invoke sigsev because it thinks that history data is 
still
    exist and have a huge desire to update history-genlist
---
 src/bin/ui/tabs.c | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

diff --git a/src/bin/ui/tabs.c b/src/bin/ui/tabs.c
index 142edca..b04b4a0 100644
--- a/src/bin/ui/tabs.c
+++ b/src/bin/ui/tabs.c
@@ -113,10 +113,7 @@ _content_set(void *data,
              item->need_recalc = false;
           }
 
-        /* call 'tab,changed' on tab click, and sent Group accociated with 
clicked
-         * tab or NULL, if click on 'home' tab */
-        evas_object_smart_callback_call(ap.win, SIGNAL_TAB_CHANGED,
-                                        item ? item->group : NULL);
+        evas_object_smart_callback_call(ap.win, SIGNAL_TAB_CHANGED, 
item->group);
 
         /* if workspace is in demo mode then change property */
         TODO("Refactor property and remove this")
@@ -124,7 +121,9 @@ _content_set(void *data,
           evas_object_smart_callback_call(ap.win, 
SIGNAL_DIFFERENT_TAB_CLICKED, NULL);
      }
    else
-     {
+          {
+        evas_object_smart_callback_call(ap.win, SIGNAL_TAB_CHANGED, NULL);
+
         tabs.current_workspace = NULL;
         tabs.current_group = NULL;
         if (ap.project)

-- 


Reply via email to