}
__context.state = AS_DYING;
- if (__context.hshow)
- ecore_event_handler_del(__context.hshow);
- if (__context.hhide)
- ecore_event_handler_del(__context.hhide);
- if (__context.hvchange)
- ecore_event_handler_del(__context.hvchange);
- if (__context.hlower)
- ecore_event_handler_del(__context.hlower);
-
- __finish_wl();
- elm_shutdown();
-
- /* Check loader case */
- if (getenv("AUL_LOADER_INIT")) {
- unsetenv("AUL_LOADER_INIT");
- elm_shutdown();
- }
appcore_base_on_terminate();
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)
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) {
EXPORT_API void appcore_ui_base_fini(void)
{
appcore_base_fini();
+
+ if (__context.hshow)
+ ecore_event_handler_del(__context.hshow);
+ if (__context.hhide)
+ ecore_event_handler_del(__context.hhide);
+ if (__context.hvchange)
+ ecore_event_handler_del(__context.hvchange);
+ if (__context.hlower)
+ ecore_event_handler_del(__context.hlower);
+
+ __finish_wl();
+ elm_shutdown();
+
+ /* Check loader case */
+ if (getenv("AUL_LOADER_INIT")) {
+ unsetenv("AUL_LOADER_INIT");
+ elm_shutdown();
+ }
+
free(__context.appid);
__context.appid = NULL;
}
__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);