diff options
author | Hyunho Kang <hhstark.kang@samsung.com> | 2016-10-12 19:33:35 +0900 |
---|---|---|
committer | Hyunho Kang <hhstark.kang@samsung.com> | 2016-10-13 00:32:46 +0900 |
commit | 576ddaf71e45cd95fa04e5c0ec6e2be7eba9e0b6 (patch) | |
tree | 171424b19d17a7d534ff2a98dff5e2e8e9f8663f | |
parent | 54fa55eb30fa95fc111a23d2ccee190901ddf60f (diff) | |
download | appcore-widget-576ddaf71e45cd95fa04e5c0ec6e2be7eba9e0b6.tar.gz appcore-widget-576ddaf71e45cd95fa04e5c0ec6e2be7eba9e0b6.tar.bz2 appcore-widget-576ddaf71e45cd95fa04e5c0ec6e2be7eba9e0b6.zip |
Support widget content info sharesubmit/tizen_3.0_common/20161104.104000submit/tizen_3.0/20161028.082323submit/tizen_3.0/20161028.062323submit/tizen/20161012.155021accepted/tizen/wearable/20161013.000906accepted/tizen/tv/20161013.000856accepted/tizen/mobile/20161013.000844accepted/tizen/ivi/20161013.000920accepted/tizen/common/20161013.155702accepted/tizen/3.0/wearable/20161028.122842accepted/tizen/3.0/tv/20161028.122620accepted/tizen/3.0/mobile/20161028.122336accepted/tizen/3.0/ivi/20161028.123035
Change-Id: Ic8b4db04bf4aba55006bb38dca0d59b001de644b
Signed-off-by: Hyunho Kang <hhstark.kang@samsung.com>
-rwxr-xr-x | src/widget_app.c | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/src/widget_app.c b/src/widget_app.c index c3edd63..243908a 100755 --- a/src/widget_app.c +++ b/src/widget_app.c @@ -759,6 +759,30 @@ static void __add_climsg() ecore_event_handler_add(ECORE_WL_EVENT_WINDOW_CONFIGURE, __configure_cb, NULL); } +static void __get_content(bundle *b) +{ + char *instance_id = NULL; + widget_context_s *cxt = NULL; + + bundle_get_str(b, AUL_K_WIDGET_INSTANCE_ID, &instance_id); + if (!instance_id) + return; + + cxt = __find_context_by_id(instance_id); + if (!cxt) { + _E("can not find instance id:%s", instance_id); + return; + } + + if (cxt->content) { + bundle_add_str(b, AUL_K_WIDGET_CONTENT_INFO, cxt->content); + _D("content info of %s found", cxt->id); + } else { + bundle_add_str(b, AUL_K_WIDGET_CONTENT_INFO, ""); + _D("empty content info added"); + } +} + static int __aul_handler(aul_type type, bundle *b, void *data) { char *caller = NULL; @@ -785,6 +809,9 @@ static int __aul_handler(aul_type type, bundle *b, void *data) case AUL_TERMINATE: widget_app_exit(); break; + case AUL_WIDGET_CONTENT: + __get_content(b); + break; default: break; } |