rimmed pushed a commit to branch master.

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

commit a13c5b716c108add6b0cf7a7f820fc1c89c5174f
Author: Vitalii Vorobiov <vi.vorob...@samsung.com>
Date:   Thu Jan 21 14:48:53 2016 +0000

    shortcuts: hide showed colorclass before shortcut would change tab
---
 src/bin/ui/shortcuts/shortcuts.c | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/src/bin/ui/shortcuts/shortcuts.c b/src/bin/ui/shortcuts/shortcuts.c
index 1735368..b90d976 100644
--- a/src/bin/ui/shortcuts/shortcuts.c
+++ b/src/bin/ui/shortcuts/shortcuts.c
@@ -354,6 +354,8 @@ _style_delete_cb(void)
 static Eina_Bool
 _new_theme_cb(void)
 {
+   if (ap.colorsel)
+     evas_object_smart_callback_call(ap.colorsel, "dismissed", NULL);
    tabs_menu_tab_open(TAB_HOME_NEW_PROJECT);
    return true;
 }
@@ -372,6 +374,8 @@ _open_edc_cb(void)
 static Eina_Bool
 _open_project_cb(void)
 {
+   if (ap.colorsel)
+     evas_object_smart_callback_call(ap.colorsel, "dismissed", NULL);
    tabs_menu_tab_open(TAB_HOME_OPEN_PROJECT);
    return true;
 }
@@ -379,6 +383,8 @@ _open_project_cb(void)
 static Eina_Bool
 _import_edj_cb(void)
 {
+   if (ap.colorsel)
+     evas_object_smart_callback_call(ap.colorsel, "dismissed", NULL);
    tabs_menu_tab_open(TAB_HOME_IMPORT_EDJ);
    return true;
 }
@@ -455,6 +461,8 @@ _close_tab_cb(void)
 static Eina_Bool
 _style_editor_open_cb(void)
 {
+   if (ap.colorsel)
+     evas_object_smart_callback_call(ap.colorsel, "dismissed", NULL);
    if (ap.project)
      tabs_menu_tab_open(TAB_STYLE_EDITOR);
    return true;
@@ -463,6 +471,8 @@ _style_editor_open_cb(void)
 static Eina_Bool
 _image_editor_open_cb(void)
 {
+   if (ap.colorsel)
+     evas_object_smart_callback_call(ap.colorsel, "dismissed", NULL);
    if (ap.project)
      tabs_menu_tab_open(TAB_IMAGE_EDITOR);
    return true;
@@ -471,6 +481,8 @@ _image_editor_open_cb(void)
 static Eina_Bool
 _sound_editor_open_cb(void)
 {
+   if (ap.colorsel)
+     evas_object_smart_callback_call(ap.colorsel, "dismissed", NULL);
    if (ap.project)
      tabs_menu_tab_open(TAB_SOUND_EDITOR);
    return true;
@@ -479,6 +491,8 @@ _sound_editor_open_cb(void)
 static Eina_Bool
 _colorclass_manager_open_cb(void)
 {
+   if (ap.colorsel)
+     evas_object_smart_callback_call(ap.colorsel, "dismissed", NULL);
    if (ap.project)
      tabs_menu_tab_open(TAB_COLORCLASS_EDITOR);
    return true;

-- 


Reply via email to