#define DEAD_TIMER_SEC 10.0
#define DEAD_TIMER_COUNT_MAX 2
-#define VCONFKEY_PRIVATE_STARTER_IS_FALLBACK "db/private/starter/is_fallback"
-#define VCONFKEY_PRIVATE_STARTER_FALLBACK_PKG "db/private/starter/fallback_pkg"
-
int errno;
}
break;
case 1:
- if (vconf_get_int(VCONFKEY_PRIVATE_STARTER_IS_FALLBACK, &is_fallback) < 0) {
- _E("Failed to get vconfkey : %s", VCONFKEY_PRIVATE_STARTER_IS_FALLBACK);
+ if (vconf_get_int(VCONFKEY_STARTER_IS_FALLBACK, &is_fallback) < 0) {
+ _E("Failed to get vconfkey : %s", VCONFKEY_STARTER_IS_FALLBACK);
}
if (is_fallback) {
- if (vconf_set_int(VCONFKEY_PRIVATE_STARTER_IS_FALLBACK, 0)) {
- _E("Failed to set vconfkey : %s", VCONFKEY_PRIVATE_STARTER_IS_FALLBACK);
+ if (vconf_set_int(VCONFKEY_STARTER_IS_FALLBACK, 0)) {
+ _E("Failed to set vconfkey : %s", VCONFKEY_STARTER_IS_FALLBACK);
}
if (!strcmp(status_active_get()->setappl_selected_package_name, MENU_SCREEN_PKG_NAME)) {
char *fallback_pkg;
- fallback_pkg = vconf_get_str(VCONFKEY_PRIVATE_STARTER_FALLBACK_PKG);
+ fallback_pkg = vconf_get_str(VCONFKEY_STARTER_FALLBACK_PKG);
_D("fallback pkg : %s", fallback_pkg);
if (fallback_pkg) {
int status;
}
_E("Failed to set vconfkey : %s (%d)", VCONFKEY_SETAPPL_SELECTED_PACKAGE_NAME, status);
} else {
- _E("Failed to get vconfkey : %s", VCONFKEY_PRIVATE_STARTER_FALLBACK_PKG);
+ _E("Failed to get vconfkey : %s", VCONFKEY_STARTER_FALLBACK_PKG);
}
}
}
Evas_Object *popup = NULL;
char title[BUF_SIZE_128] = { 0, };
char text[BUF_SIZE_1024] = { 0, };
+ char *appid = NULL;
- char *appid = (char *)data;
- retv_if(!appid, ECORE_CALLBACK_CANCEL);
+ appid = status_active_get()->setappl_selected_package_name;
+ if (!appid) {
+ _E("appid is NULL");
+ return ECORE_CALLBACK_CANCEL;
+ }
_D("dead count : %s(%d)", appid, s_home_mgr.dead_count);
}
/* set fallback status */
- if (vconf_set_int(VCONFKEY_PRIVATE_STARTER_IS_FALLBACK, 1) < 0) {
- _E("Failed to set vconfkey : %s", VCONFKEY_PRIVATE_STARTER_IS_FALLBACK);
+ if (vconf_set_int(VCONFKEY_STARTER_IS_FALLBACK, 1) < 0) {
+ _E("Failed to set vconfkey : %s", VCONFKEY_STARTER_IS_FALLBACK);
}
- if (vconf_set_str(VCONFKEY_PRIVATE_STARTER_FALLBACK_PKG, appid) < 0) {
- _E("Failed to set vconfkey : %s", VCONFKEY_PRIVATE_STARTER_FALLBACK_PKG);
+ if (vconf_set_str(VCONFKEY_STARTER_FALLBACK_PKG, appid) < 0) {
+ _E("Failed to set vconfkey : %s", VCONFKEY_STARTER_FALLBACK_PKG);
}
}
if (!s_home_mgr.dead_timer) {
_D("Add dead timer");
- s_home_mgr.dead_timer = ecore_timer_add(DEAD_TIMER_SEC, _dead_timer_cb, (void *)appid);
+ s_home_mgr.dead_timer = ecore_timer_add(DEAD_TIMER_SEC, _dead_timer_cb, NULL);
if (!s_home_mgr.dead_timer) {
_E("Failed to add a dead timer");
}