evas_object_smart_callback_add(bt, "clicked", _back_cb, ad);
elm_naviframe_item_push(nv,
- _("IDS_TASKMGR_HEADER_TASK_SWITCHER"),
+ T_("IDS_TASKMGR_HEADER_TASK_SWITCHER"),
bt, NULL, ly, NULL);
return 0;
ecore_x_window_size_get(root_win, &ad->root_w, &ad->root_h);
}
-static void _vconf_noti_cb(keynode_t *node, void *data)
-{
- elm_exit();
-}
-
-static void _set_vconf_noti(void *data)
-{
- vconf_notify_key_changed(VCONFKEY_IDLE_LOCK_STATE,
- _vconf_noti_cb, NULL);
-}
-
/* this func is to exit taskmanager after launching application */
static Eina_Bool __climsg_cb(void *data, int type, void *event)
{
}
if (ev->message_type == a_deact) {
- _D("exit after 1.0 sec\n");
+ _D("exit after 0.3 sec\n");
ad->exit_timer = ecore_timer_add(0.3, _exit_cb, ad);
return ECORE_CALLBACK_CANCEL;
} else {
return ECORE_CALLBACK_CANCEL;
}
-static Eina_Bool _ask_kill_process(void *data)
-{
- struct appdata *ad = data;
-
- _del_progressbar(ad);
-
- ad->mode *= 2;
- /* why? check enum in taskmgr.h */
-
- if (ad->popup_ask) {
- evas_object_del(ad->popup_ask);
- ad->popup_ask = NULL;
- }
- ad->popup_ask = _add_popup_ask(ad->win,
- "It might be an invalid process. Do you want to kill this proceess anyway?",
- ad);
-
- return ECORE_CALLBACK_CANCEL;
-}
-
void _ok_response_cb(void *data, Evas_Object *obj, void *event_info)
{
struct appdata *ad = (struct appdata *)data;
case MODE_END_INUSE:
_D("end inuse\n");
_del_popup_timer(ad);
- ad->popup_timer = ecore_timer_add(7.0, _ask_kill_process, ad);
_show_progressbar(ad);
response_end_inuse(ad);
_restart_pthread(ad);
case MODE_END_ALL_INUSE:
_D("end all inuse\n");
_del_popup_timer(ad);
- ad->popup_timer = ecore_timer_add(7.0, _ask_kill_process, ad);
_show_progressbar(ad);
response_end_all_inuse(ad);
break;
case MODE_DEL_HISTORY:
_D("del inuse\n");
_del_popup_timer(ad);
- ad->popup_timer = ecore_timer_add(5.0, _ask_kill_process, ad);
response_del_history(ad);
break;
case MODE_DEL_ALL_HISTORY:
_D("del all inuse\n");
_del_popup_timer(ad);
- ad->popup_timer = ecore_timer_add(5.0, _ask_kill_process, ad);
response_del_all_history(ad);
break;
_init_pthread();
_get_win_geometry(ad);
- _set_vconf_noti(ad);
ecore_event_handler_add(ECORE_X_EVENT_CLIENT_MESSAGE, __climsg_cb, ad);
return ECORE_CALLBACK_CANCEL;
char *msgid;
};
+enum {
+ IDLELOCK_OFF = 0x0,
+ IDLELOCK_ON,
+ IDLELOCK_MAX,
+};
+
static struct text_part main_txt[] = {
};
return 0;
}
+int _get_vconf_idlelock(void)
+{
+ int ret = -1;
+ int lock = IDLELOCK_OFF;
+
+ ret = vconf_get_int(VCONFKEY_IDLE_LOCK_STATE, &lock);
+ retvm_if(ret < 0, -1, "Failed to get vconf %s\n",
+ VCONFKEY_IDLE_LOCK_STATE);
+ _D("idlelock vconf:%d\n", lock);
+
+ return lock == VCONFKEY_IDLE_LOCK ? IDLELOCK_ON : IDLELOCK_OFF;
+}
+
Eina_Bool _exit_cb(void *data)
{
struct appdata *ad = (struct appdata *)data;
ad->exit_timer = NULL;
- elm_exit();
+ if(_get_vconf_idlelock() == IDLELOCK_ON){
+ elm_exit();
+ }
+ else{
+ _D("IDLELOCK is set, taskmnager doesn't exit\n");
+ }
return ECORE_CALLBACK_CANCEL;
}
_set_launch_effect(win);
// _set_notification_level(win, UTILX_NOTIFICATION_LEVEL_NORMAL);
+ /* init internationalization */
+ r = appcore_set_i18n(PACKAGE, LOCALEDIR);
+ retvm_if(r < 0, -1, "Failed to set i18n\n");
+ _lang_changed(ad);
+
+
elm_theme_extension_add(NULL, EDJ_THEME);
_app_create(ad);
/* set dead signal listener */
aul_listen_app_dead_signal(_dead_cb, ad);
- /* init internationalization */
- r = appcore_set_i18n(PACKAGE, LOCALEDIR);
- retvm_if(r < 0, -1, "Failed to set i18n\n");
- _lang_changed(ad);
-
appcore_set_event_callback(APPCORE_EVENT_LANG_CHANGE,
_lang_changed, ad);
_D("func\n");
struct appdata *ad = data;
+ refresh_app_info(ad);
if (ad->exit_timer) {
ecore_timer_del(ad->exit_timer);
ad->exit_timer = NULL;