X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2Fui_base%2Fappcore_ui_base.c;h=31da1ef897a34eda9164ef05a65549ab76e7fef9;hb=d6a09f48f7ced6a16793fc4fc0f99aa21bac25ac;hp=524e8cc0622530dfa2cb683fa58614733d7e78e5;hpb=e821ae11e1794900b880dee959cee86ca08d5bf9;p=platform%2Fcore%2Fappfw%2Fapp-core.git diff --git a/src/ui_base/appcore_ui_base.c b/src/ui_base/appcore_ui_base.c index 524e8cc..31da1ef 100644 --- a/src/ui_base/appcore_ui_base.c +++ b/src/ui_base/appcore_ui_base.c @@ -538,10 +538,22 @@ EXPORT_API int appcore_ui_base_on_control(bundle *b) static void __group_attach() { - static bool attached = false; + if (!(__context.hint & APPCORE_UI_BASE_HINT_WINDOW_GROUP_CONTROL)) + return; + appcore_ui_base_group_add(); +} + +static void __group_lower() +{ if (!(__context.hint & APPCORE_UI_BASE_HINT_WINDOW_GROUP_CONTROL)) return; + appcore_ui_base_group_remove(); +} + +EXPORT_API void appcore_ui_base_group_add() +{ + static bool attached = false; _DBG("__group_attach"); if (attached) @@ -557,13 +569,10 @@ static void __group_attach() attached = true; } -static void __group_lower() +EXPORT_API void appcore_ui_base_group_remove() { int exit = 0; - if (!(__context.hint & APPCORE_UI_BASE_HINT_WINDOW_GROUP_CONTROL)) - return; - _DBG("__group_lower"); aul_app_group_lower(&exit); if (exit) { @@ -763,6 +772,16 @@ EXPORT_API void appcore_ui_base_exit(void) __context.ops.base.exit(__context.data); } +EXPORT_API unsigned int appcore_ui_base_get_main_window(void) +{ + return __get_main_window(); +} + +EXPORT_API unsigned int appcore_ui_base_get_main_surface(void) +{ + return __get_main_surface(); +} + static int __on_receive(aul_type type, bundle *b, void *data) { return appcore_ui_base_on_receive(type, b);