okra pushed a commit to branch master.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=43530648c5727ff3435a818af785e11c6d68b8c3

commit 43530648c5727ff3435a818af785e11c6d68b8c3
Author: Stephen 'Okra' Houston <[email protected]>
Date:   Thu Feb 2 15:03:10 2017 -0600

    Sysinfo Gadget - Cpumonitor gadget resize callback needs to be removed 
after resize to prevent looping.
---
 src/modules/sysinfo/cpumonitor/cpumonitor.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/modules/sysinfo/cpumonitor/cpumonitor.c 
b/src/modules/sysinfo/cpumonitor/cpumonitor.c
index 3056948..8860424 100644
--- a/src/modules/sysinfo/cpumonitor/cpumonitor.c
+++ b/src/modules/sysinfo/cpumonitor/cpumonitor.c
@@ -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);

-- 


Reply via email to