rimmed pushed a commit to branch master. http://git.enlightenment.org/tools/eflete.git/commit/?id=105633f63183c8203877f6753acb08e7986a984e
commit 105633f63183c8203877f6753acb08e7986a984e Author: Vyacheslav Reutskiy <v.reuts...@samsung.com> Date: Thu May 12 11:57:08 2016 +0300 workspace: add signal for mode change event Change-Id: Id5c60878daf69000899a2ea81f8b69bee81d8db6 --- src/bin/common/signals.h | 7 +++++++ src/bin/ui/workspace/workspace.c | 1 + 2 files changed, 8 insertions(+) diff --git a/src/bin/common/signals.h b/src/bin/common/signals.h index 90bbe1e..c2f9553 100644 --- a/src/bin/common/signals.h +++ b/src/bin/common/signals.h @@ -491,4 +491,11 @@ typedef struct { */ #define SIGNAL_SHORTCUT_TAB_NUM "SIGNAL_SHORTCUT_TAB_NUM" +/** + * emited when workspace is changed. + * event_info - pointer to mode (Workspace_Mode *) + * + * @ingroup Window + */ +#define SIGNAL_WORKSPACE_MODE_CHANGED "SIGNAL_WORKSPACE_MODE_CHANGED" #endif /* SIGNALS_H*/ diff --git a/src/bin/ui/workspace/workspace.c b/src/bin/ui/workspace/workspace.c index eee639a..ab7b721 100644 --- a/src/bin/ui/workspace/workspace.c +++ b/src/bin/ui/workspace/workspace.c @@ -764,6 +764,7 @@ _mode_cb(void *data, break; } + evas_object_smart_callback_call(ap.win, SIGNAL_WORKSPACE_MODE_CHANGED, &wd->mode); assert (area != NULL); if (container_aspect_get(area->container) < 0) --