proclist: initial alignment.

This commit is contained in:
Alastair Poole 2021-03-27 08:55:50 +00:00
parent 2324dd5cc4
commit 77bb88de04
1 changed files with 8 additions and 2 deletions

View File

@ -31,6 +31,7 @@ typedef struct
Eina_Hash *cpu_times; Eina_Hash *cpu_times;
Eina_Bool skip_wait; Eina_Bool skip_wait;
Eina_Bool skip_update; Eina_Bool skip_update;
Eina_Bool update_every_item;
Sorter sorters[PROC_SORT_BY_MAX]; Sorter sorters[PROC_SORT_BY_MAX];
pid_t selected_pid; pid_t selected_pid;
int poll_count; int poll_count;
@ -609,7 +610,6 @@ _field_adjust(Data *pd, Proc_Field id, Evas_Object *obj, Evas_Coord w)
evas_object_size_hint_weight_set(rec, EXPAND, EXPAND); evas_object_size_hint_weight_set(rec, EXPAND, EXPAND);
evas_object_size_hint_weight_set(obj, EXPAND, EXPAND); evas_object_size_hint_weight_set(obj, EXPAND, EXPAND);
} }
evas_object_show(obj);
} }
static Evas_Object * static Evas_Object *
@ -646,6 +646,7 @@ _content_get(void *data, Evas_Object *obj, const char *source)
if (ow > w) if (ow > w)
{ {
evas_object_size_hint_min_set(pd->btn_cmd, ow, 1); evas_object_size_hint_min_set(pd->btn_cmd, ow, 1);
pd->update_every_item = 1;
pd->skip_wait = 1; pd->skip_wait = 1;
} }
rec = evas_object_data_get(lb, "rec"); rec = evas_object_data_get(lb, "rec");
@ -678,6 +679,7 @@ _content_get(void *data, Evas_Object *obj, const char *source)
if (ow > w) if (ow > w)
{ {
evas_object_size_hint_min_set(pd->btn_uid, ow, 1); evas_object_size_hint_min_set(pd->btn_uid, ow, 1);
pd->update_every_item = 1;
pd->skip_wait = 1; pd->skip_wait = 1;
} }
_field_adjust(pd, PROC_FIELD_UID, lb, w); _field_adjust(pd, PROC_FIELD_UID, lb, w);
@ -1109,11 +1111,15 @@ _process_list_feedback_cb(void *data, Ecore_Thread *thread EINA_UNUSED,
proc_info_free(prev); proc_info_free(prev);
elm_object_item_data_set(it, proc); elm_object_item_data_set(it, proc);
if (pd->update_every_item)
elm_genlist_item_update(it);
it = elm_genlist_item_next_get(it); it = elm_genlist_item_next_get(it);
} }
if (!pd->update_every_item)
elm_genlist_realized_items_update(pd->glist); elm_genlist_realized_items_update(pd->glist);
pd->update_every_item = 0;
_summary_update(pd); _summary_update(pd);