struct appdata *ad = data;
char buf[_BUF_MAX] = { 0, };
-// refresh_app_info(ad);
-
ad->mode = MODE_DEL_ALL_HISTORY;
snprintf(buf, sizeof(buf), T_("IDS_TASKMGR_POP_CLEAR_ALL_APP_HISTORY_Q"));
if (ad->popup_ask) {
}
ad->popup_ask = _add_popup_ask(ad->win, buf, ad);
g_egi = (void *)info_ev->it;
-// evas_object_data_set(ad->popup_ask, "selected_egi", (void *)info_ev->it);
}
static void delete_history_cb(void *data, Evas_Object *obj, void *event_info)
}
ad->popup_ask = _add_popup_ask(ad->win, buf, ad);
g_egi = (void *)info_ev->it;
-// evas_object_data_set(ad->popup_ask, "selected_egi", (void *)info_ev->it);
}
static void nl_sel(void *data, Evas_Object *obj, void *event_info)
evas_object_color_set(rt, 0, 0, 0, 0);
evas_object_size_hint_min_set(rt, 50, 50);
-// evas_object_size_hint_min_set(rt, (int)(50.0 * scale),
-// (int)(50.0 * scale));
-// evas_object_size_hint_max_set(rt, (int)(50.0 * scale),
-// (int)(50.0 * scale));
elm_object_part_content_set(icon, "icon_ly", rt);
elm_object_part_content_set(icon, "icon", icon_ly);
evas_object_smart_callback_add(btn, "clicked",
func_end[info->category], info);
elm_object_focus_set(btn, EINA_FALSE);
-
-// evas_object_size_hint_min_set(btn, (int)(90.0 * scale),
-// (int)(47.0 * scale));
-// evas_object_size_hint_max_set(btn, (int)(90.0 * scale),
-// (int)(47.0 * scale));
-
evas_object_propagate_events_set(btn, EINA_FALSE);
return btn;
evas_object_size_hint_min_set(btn, 0, 50);
evas_object_size_hint_max_set(btn, 0, 50);
-// evas_object_size_hint_min_set(btn, 0, (int)(47.0 * scale));
-// evas_object_size_hint_max_set(btn, 0, (int)(47.0 * scale));
-
evas_object_propagate_events_set(btn, EINA_FALSE);
return btn;
evas_object_color_set(rt, 0, 0, 0, 0);
evas_object_size_hint_min_set(rt, 50, 50);
-// evas_object_size_hint_min_set(rt, (int)(50.0 * scale),
-// (int)(50.0 * scale));
-// evas_object_size_hint_max_set(rt, (int)(50.0 * scale),
-// (int)(50.0 * scale));
elm_object_part_content_set(icon, "icon_ly", rt);
elm_object_part_content_set(icon, "icon", icon_ly);
evas_object_smart_callback_add(btn, "clicked",
func_end[info->category], info);
elm_object_focus_set(btn, EINA_FALSE);
-
- // evas_object_size_hint_min_set(btn, (int)(90.0 * scale),
- // (int)(47.0 * scale));
- // evas_object_size_hint_max_set(btn, (int)(90.0 * scale),
- // (int)(47.0 * scale));
-
evas_object_propagate_events_set(btn, EINA_FALSE);
return btn;
itc_separator2.item_style = "dialogue/seperator.2";
itc_bl.item_style = "dialogue/bg/1icon";
-// itc_bl.item_style = "1icon";
itc_bl.func.content_get = _bl_content_get;
itc_nl.item_style = "1text";
retvm_if(ad == NULL, -1, "Invalid argument: appdata is NULL\n");
ad->ending = EINA_TRUE;
-// egi = evas_object_data_get(ad->popup_ask, "selected_egi");
EINA_LIST_FOREACH_SAFE(ad->applist[TS_INUSE], l, l_next, info) {
+ _D("applist pid : %d", info->pid);
if (info->it == g_egi) {
+ _D("matched applist pid : %d", info->pid);
if (info->pid > 0) {
if (aul_terminate_pid(info->pid) < 0) {
kill(info->pid, SIGKILL);
}
-// ad->applist[TS_INUSE] =
-// eina_list_remove_list(ad->applist[TS_INUSE], l);
}
break;
}
EINA_LIST_FOREACH(ad->applist[TS_INUSE], l, info) {
if (info != NULL) {
+ _D("applist pid : %d", info->pid);
if (info->pid > 0) {
if (aul_terminate_pid(info->pid) < 0) {
kill(info->pid, SIGKILL);
}
_D("terminated\n");
-// ad->applist[TS_INUSE] =
-// eina_list_remove_list(ad->applist[TS_INUSE], l);
}
}
}
retvm_if(ad == NULL, -1, "Invalid argument: appdata is NULL\n");
_show_progressbar(ad);
-// egi = evas_object_data_get(ad->popup_ask, "selected_egi");
EINA_LIST_FOREACH_SAFE(ad->applist[TS_HISTORY], l, l_next, info) {
+ _D("history applist pid : %d", info->pid);
if (info->it == g_egi) {
if (rua_init() == -1) {
retvm_if(ad == NULL, -1, "Invalid argument: appdata is NULL\n");
_show_progressbar(ad);
-// egi = evas_object_data_get(ad->popup_ask, "selected_egi");
EINA_LIST_FOREACH_SAFE(ad->applist[TS_INUSE], l, l_next, info) {
+ _D("kill applist pid : %d", info->pid);
if (info->it == g_egi) {
if (info->pid > 0) {
kill(info->pid, SIGKILL);
_show_progressbar(ad);
EINA_LIST_FOREACH(ad->applist[TS_INUSE], l, info) {
+ _D("kill all applist pid : %d", info->pid);
if (info != NULL) {
if (info->pid > 0) {
kill(info->pid, SIGKILL);
struct appdata *ad = (struct appdata *)data;
retvm_if(ad == NULL, -1, "Invalid argument: appdata is NULL\n");
+ int ret = -1;
+
_fini_pthread();
if (ad->update_timer) {
ecore_timer_del(ad->update_timer);
ad->update_timer = NULL;
}
- _subt_einalist_item(ad, pid);
- _D("mode(%d) count(%d)\n", ad->mode, ad->endcnt);
+ ret = _subt_einalist_item(ad, pid);
+ _D("mode(%d) count(%d) pid(%d) \n", ad->mode, ad->endcnt, pid);
+
+ if (ret != -1) {
switch (ad->mode) {
default:
case MODE_END_INUSE:
break;
}
}
+}
static void _back_cb(void *data, Evas_Object *obj, void *event_info)
{
evas_object_smart_callback_add(gl, "scroll,drag,stop", _drag_stop_cb, ad);
evas_object_smart_callback_add(gl, "scroll,anim,start", _anim_start_cb, ad);
evas_object_smart_callback_add(gl, "scroll,anim,stop", _anim_stop_cb, ad);
-// evas_object_smart_callback_add(gl, "edge,bottom", _moved_cb, ad);
ad->gl = gl;
bt = elm_button_add(nv);