discomfitor pushed a commit to branch enlightenment-0.21.

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

commit d7ad6e027bf11c4be5f2244c00f9131cc8472a1b
Author: Mike Blumenkrantz <[email protected]>
Date:   Fri Sep 1 13:40:12 2017 -0400

    don't update clock timer for time gadgets when deleting a non-advanced 
gadget
    
    if the deleted gadget won't affect timers then don't update timers
    
    ref T4648
---
 src/modules/time/clock.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/modules/time/clock.c b/src/modules/time/clock.c
index 53d22ba8e..99f9753ca 100644
--- a/src/modules/time/clock.c
+++ b/src/modules/time/clock.c
@@ -306,7 +306,13 @@ clock_del(void *data, Evas *e EINA_UNUSED, Evas_Object 
*obj EINA_UNUSED, void *e
    clock_instances = eina_list_remove(clock_instances, inst);
    evas_object_del(inst->popup);
    time_daynames_clear(inst);
+   if (inst->cfg)
+     {
+        advanced |= !!inst->cfg->advanced;
+        seconds |= !!inst->cfg->show_seconds;
+     }
    free(inst);
+   if ((!advanced) && (!seconds)) return;
    EINA_LIST_FOREACH(clock_instances, l, inst)
      {
         advanced |= !!inst->cfg->advanced;

-- 


Reply via email to