Sysinfo Gadget - Cpumonitor gadget resize callback needs to be removed after resize to prevent looping.

This commit is contained in:
Stephen 'Okra' Houston 2017-02-02 15:03:10 -06:00
parent 0a91a24573
commit 43530648c5
1 changed files with 1 additions and 0 deletions

View File

@ -120,6 +120,7 @@ _cpumonitor_resize_cb(void *data, Evas *e EINA_UNUSED, Evas_Object *obj, void *e
if (!num_cores || !inst->o_main) return;
edje_object_parts_extends_calc(elm_layout_edje_get(obj), 0, 0, &w, &h);
evas_object_event_callback_del_full(obj, EVAS_CALLBACK_RESIZE, _cpumonitor_resize_cb, inst);
if (inst->cfg->esm == E_SYSINFO_MODULE_CPUMONITOR)
{
evas_object_geometry_get(inst->o_main, 0, 0, &sw, &sh);