sysinfo: fix popup position when using the cumulative sysinfo gadget

This commit is contained in:
Davide Andreoli 2017-01-30 22:46:27 +01:00
parent ff24863007
commit 5007293f99
3 changed files with 6 additions and 3 deletions

View File

@ -89,7 +89,8 @@ _cpumonitor_mouse_down_cb(void *data, Evas *e EINA_UNUSED, Evas_Object *obj EINA
evas_object_show(label);
inst->cfg->cpumonitor.popup_label = label;
e_gadget_util_ctxpopup_place(inst->o_main, popup, NULL);
e_gadget_util_ctxpopup_place(inst->o_main, popup,
inst->cfg->cpumonitor.o_gadget);
evas_object_show(popup);
inst->cfg->cpumonitor.popup = popup;
}

View File

@ -222,7 +222,8 @@ _memusage_popup_create(Instance *inst)
evas_object_data_set(popup, "swap_pbar", pbar);
// place and show the popup
e_gadget_util_ctxpopup_place(inst->o_main, popup, NULL);
e_gadget_util_ctxpopup_place(inst->o_main, popup,
inst->cfg->memusage.o_gadget);
evas_object_show(popup);
return popup;

View File

@ -91,7 +91,8 @@ _netstatus_mouse_down_cb(void *data, Evas *e EINA_UNUSED, Evas_Object *obj EINA_
evas_object_show(label);
inst->cfg->netstatus.popup_label = label;
e_gadget_util_ctxpopup_place(inst->o_main, popup, NULL);
e_gadget_util_ctxpopup_place(inst->o_main, popup,
inst->cfg->netstatus.o_gadget);
evas_object_show(popup);
inst->cfg->netstatus.popup = popup;
}