.def_timeout_fn = mytimeout
};
-/* App Life cycle funtions */
-static void win_del(void *data, Evas_Object * obj, void *event)
-{
- popup_terminate();
-}
-
/* Cleanup objects to avoid mem-leak */
void lowbatt_cleanup(struct appdata *ad)
{
char *msgid;
};
-/* App Life cycle funtions */
-static void win_del(void *data, Evas_Object *obj, void *event)
-{
- popup_terminate();
-}
-
/* Cleanup objects to avoid mem-leak */
void lowmem_cleanup(struct appdata *ad)
{
return 0;
}
ret = syspopup_create(b, &handler, ad->win_main, ad);
+ if (ret < 0) {
+ _E("Failed to create popup(%d)", ret);
+ return ret;
+ }
evas_object_show(ad->win_main);
memnoti_level = bundle_get_val(b, "_MEM_NOTI_");
static int option = -1;
+int mmc_popup_start(void *data);
+
int myterm(bundle *b, void *data)
{
return 0;
.def_timeout_fn = mytimeout
};
-/* App Life cycle funtions */
-static void win_del(void *data, Evas_Object * obj, void *event)
-{
- popup_terminate();
-}
-
/* Terminate noti handler */
static int app_terminate(void *data)
{
{
struct appdata *ad = data;
char *opt = NULL;
+ int ret;
- opt = bundle_get_val(b, "_SYSPOPUP_CONTENT_");
+ opt = (char *)bundle_get_val(b, "_SYSPOPUP_CONTENT_");
if (!strcmp(opt,"mounterr"))
option = MOUNT_ERROR_ACT;
-
+
if (syspopup_has_popup(b)) {
syspopup_reset(b);
} else {
syspopup_create(b, &handler, ad->win_main, ad);
evas_object_show(ad->win_main);
/* Start Main UI */
- mmc_popup_start((void *)ad);
+ ret = mmc_popup_start((void *)ad);
+ if (ret < 0) {
+ _E("Failed to show popup (%d)", ret);
+ return ret;
+ }
}
return 0;
evas_object_del(ad->layout_main);
}
-void mmc_response(void *data)
+void mmc_response(void *data, Evas_Object * obj, void *event_info)
{
if (data != NULL)
mmc_cleanup(data);
.def_timeout_fn = mytimeout
};
-/* App Life cycle funtions */
-static void win_del(void *data, Evas_Object * obj, void *event)
-{
- popup_terminate();
-}
-
/* Cleanup objects to avoid mem-leak */
void poweroff_cleanup(struct appdata *ad)
{
if (sysman_call_predef_action(PREDEF_POWEROFF, 0) == -1) {
_E("System-popup : failed to request poweroff to system_server");
- system("poweroff");
}
}