Merge "Add manifest and fix spec file."
[apps/core/preloaded/taskmanager.git] / src / _genlist.c
index 480db80..13a61a2 100755 (executable)
@@ -327,7 +327,9 @@ static Evas_Object *_gl_content_get_app(void *data, Evas_Object *obj,
                retvm_if(rt == NULL, NULL, "Failed to add rectangle\n");
 
                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)72 * elm_scale_get(), 
+                                       (int)72 * elm_scale_get());
                elm_object_part_content_set(icon, "icon_ly", rt);
 
                elm_object_part_content_set(icon, "icon", icon_ly);
@@ -482,7 +484,9 @@ static Evas_Object *_gl_content_get_his(void *data, Evas_Object *obj,
                retvm_if (rt == NULL, NULL, "Failed to add rectangle\n");
 
                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)72 * elm_scale_get(), 
+                                       (int)72 * elm_scale_get());
                elm_object_part_content_set(icon, "icon_ly", rt);
 
                elm_object_part_content_set(icon, "icon", icon_ly);
@@ -567,7 +571,7 @@ _D("func\n");
                                                 ELM_GENLIST_ITEM_NONE,
                                              NULL, NULL);
                retvm_if(git == NULL, -1, "Failed append item\n");
-               elm_genlist_item_select_mode_set(git, EINA_TRUE);
+               elm_genlist_item_select_mode_set(git, ELM_OBJECT_SELECT_MODE_NONE);
 
                if (eina_list_count(ad->applist[i]) > 0) {
 
@@ -621,6 +625,8 @@ _D("func\n");
 
        if(ad->applist[TS_INUSE] == NULL) {
                _D("inuse is NULL\n");
+               pthread_mutex_unlock(&mutex_for_graph_update);
+               ad->update_timer = NULL;
                return ECORE_CALLBACK_CANCEL;
        }
        ad->applist[TS_INUSE] = eina_list_nth_list(ad->applist[TS_INUSE], 0);
@@ -679,13 +685,21 @@ void _set_genlist(struct appdata *ad)
 _D("func\n");
        retm_if(ad == NULL, "Invalid argument: appdata is NULL\n");
        int ret = AUL_R_ERROR;
+       int retry_cnt = 0;
+       int sleep_value = 1000;
 
        _init_grp_cnt();
 
-       ret = aul_app_get_running_app_info(runapp_info_get, ad);
+       while (ret != AUL_R_OK && retry_cnt < 5) {
+               usleep(sleep_value);
+               ret = aul_app_get_running_app_info(runapp_info_get, ad);
+
+               if (ret != AUL_R_OK) {
+                       _D("Fail to get running app information from ail");
+               }
 
-       if (ret != AUL_R_OK) {
-               _D("Fail to get running app information from ail");
+               retry_cnt++;
+               sleep_value *= 2;
        }
 
        taskmanager_get_history_app_info(ad);