rimmed pushed a commit to branch master.

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

commit a60e8dcf40256230add1244ff371e56821e264aa
Author: Vitalii Vorobiov <vi.vorob...@samsung.com>
Date:   Tue Feb 2 18:02:42 2016 +0000

    tabs: avoid double tab clicking
    
    When any of editors is clicked its doing double callback emitting
    (both editors and tab changed).
    For example, in main window its disable history in one callback
    and instantly enable it in second callback
    
    @fix
---
 src/bin/ui/tabs.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/bin/ui/tabs.c b/src/bin/ui/tabs.c
index 7cc8b52..6c5449a 100644
--- a/src/bin/ui/tabs.c
+++ b/src/bin/ui/tabs.c
@@ -115,6 +115,11 @@ _content_set(void *data,
              workspace_groupview_hard_update(tabs.current_workspace);
              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);
      }
    else
      {
@@ -149,11 +154,6 @@ _content_set(void *data,
              evas_object_smart_callback_call(ap.win, 
SIGNAL_DIFFERENT_TAB_CLICKED, NULL);
           }
      }
-
-   /* 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);
 }
 
 static Tabs_Item *

-- 


Reply via email to