procs: simplify
still an issue...after time with scrolling
This commit is contained in:
parent
1680521da6
commit
7e925f42a0
|
@ -326,7 +326,7 @@ _item_create(Evas_Object *parent)
|
||||||
lb = _item_column_add(tbl, "proc_cpuid", i++);
|
lb = _item_column_add(tbl, "proc_cpuid", i++);
|
||||||
evas_object_size_hint_align_set(lb, 1.0, FILL);
|
evas_object_size_hint_align_set(lb, 1.0, FILL);
|
||||||
lb = _item_column_add(tbl, "proc_state", i++);
|
lb = _item_column_add(tbl, "proc_state", i++);
|
||||||
evas_object_size_hint_align_set(lb, 0.8, FILL);
|
evas_object_size_hint_align_set(lb, 0.5, FILL);
|
||||||
|
|
||||||
hbx = elm_box_add(tbl);
|
hbx = elm_box_add(tbl);
|
||||||
elm_box_horizontal_set(hbx, 1);
|
elm_box_horizontal_set(hbx, 1);
|
||||||
|
@ -362,7 +362,6 @@ _content_get(void *data, Evas_Object *obj, const char *source)
|
||||||
|
|
||||||
if (strcmp(source, "elm.swallow.content")) return NULL;
|
if (strcmp(source, "elm.swallow.content")) return NULL;
|
||||||
if (!proc) return NULL;
|
if (!proc) return NULL;
|
||||||
if (pd->skip_wait) return NULL;
|
|
||||||
|
|
||||||
Item_Cache *it = evisum_ui_item_cache_item_get(pd->cache);
|
Item_Cache *it = evisum_ui_item_cache_item_get(pd->cache);
|
||||||
if (!it)
|
if (!it)
|
||||||
|
@ -784,6 +783,7 @@ _process_list_feedback_cb(void *data, Ecore_Thread *thread EINA_UNUSED,
|
||||||
}
|
}
|
||||||
|
|
||||||
elm_genlist_realized_items_update(pd->genlist);
|
elm_genlist_realized_items_update(pd->genlist);
|
||||||
|
evas_object_smart_calculate(pd->scroller);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
@ -1507,7 +1507,7 @@ static Eina_Bool
|
||||||
_resize_timer_cb(void *data)
|
_resize_timer_cb(void *data)
|
||||||
{
|
{
|
||||||
Ui_Data *pd = data;
|
Ui_Data *pd = data;
|
||||||
pd->skip_wait = 1;
|
pd->skip_wait = 0;
|
||||||
ecore_timer_del(pd->resize_timer);
|
ecore_timer_del(pd->resize_timer);
|
||||||
pd->resize_timer = NULL;
|
pd->resize_timer = NULL;
|
||||||
return EINA_FALSE;
|
return EINA_FALSE;
|
||||||
|
@ -1522,6 +1522,7 @@ _win_resize_cb(void *data, Evas *e, Evas_Object *obj, void *event_info)
|
||||||
pd = data;
|
pd = data;
|
||||||
ui = pd->ui;
|
ui = pd->ui;
|
||||||
|
|
||||||
|
pd->skip_wait = 1;
|
||||||
elm_genlist_realized_items_update(pd->genlist);
|
elm_genlist_realized_items_update(pd->genlist);
|
||||||
|
|
||||||
evas_object_lower(pd->entry_pop);
|
evas_object_lower(pd->entry_pop);
|
||||||
|
@ -1537,16 +1538,6 @@ _win_resize_cb(void *data, Evas *e, Evas_Object *obj, void *event_info)
|
||||||
&ui->proc.width, &ui->proc.height);
|
&ui->proc.width, &ui->proc.height);
|
||||||
}
|
}
|
||||||
|
|
||||||
static Eina_Bool
|
|
||||||
_elm_config_changed_cb(void *data, int type EINA_UNUSED, void *event EINA_UNUSED)
|
|
||||||
{
|
|
||||||
Ui_Data *pd = data;
|
|
||||||
|
|
||||||
_process_list_update(pd);
|
|
||||||
|
|
||||||
return EINA_TRUE;
|
|
||||||
}
|
|
||||||
|
|
||||||
static Eina_Bool
|
static Eina_Bool
|
||||||
_evisum_config_changed_cb(void *data, int type EINA_UNUSED, void *event EINA_UNUSED)
|
_evisum_config_changed_cb(void *data, int type EINA_UNUSED, void *event EINA_UNUSED)
|
||||||
{
|
{
|
||||||
|
@ -1602,7 +1593,6 @@ _win_del_cb(void *data EINA_UNUSED, Evas *e EINA_UNUSED, Evas_Object *obj EINA_U
|
||||||
ecore_timer_del(pd->resize_timer);
|
ecore_timer_del(pd->resize_timer);
|
||||||
|
|
||||||
ecore_event_handler_del(pd->handler[0]);
|
ecore_event_handler_del(pd->handler[0]);
|
||||||
ecore_event_handler_del(pd->handler[1]);
|
|
||||||
|
|
||||||
pd->thread = NULL;
|
pd->thread = NULL;
|
||||||
ui->proc.win = NULL;
|
ui->proc.win = NULL;
|
||||||
|
@ -1632,9 +1622,7 @@ ui_process_list_win_add(Ui *ui, Evas_Object *parent EINA_UNUSED)
|
||||||
|
|
||||||
pd->selected_pid = -1;
|
pd->selected_pid = -1;
|
||||||
pd->ui = ui;
|
pd->ui = ui;
|
||||||
pd->handler[0] = ecore_event_handler_add(ELM_EVENT_CONFIG_ALL_CHANGED,
|
pd->handler[0] = ecore_event_handler_add(EVISUM_EVENT_CONFIG_CHANGED,
|
||||||
_elm_config_changed_cb, pd);
|
|
||||||
pd->handler[1] = ecore_event_handler_add(EVISUM_EVENT_CONFIG_CHANGED,
|
|
||||||
_evisum_config_changed_cb, pd);
|
_evisum_config_changed_cb, pd);
|
||||||
|
|
||||||
ui->proc.win = pd->win = win = elm_win_util_standard_add("evisum", "evisum");
|
ui->proc.win = pd->win = win = elm_win_util_standard_add("evisum", "evisum");
|
||||||
|
|
Loading…
Reference in New Issue