aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@osg.samsung.com>2017-09-01 13:40:12 -0400
committerMike Blumenkrantz <zmike@osg.samsung.com>2017-09-01 13:46:21 -0400
commitd7ad6e027bf11c4be5f2244c00f9131cc8472a1b (patch)
tree58010edf5af5d2e88cbf4e87ba9c0de58a7e929e
parentset shaped client image alpha after setting image data (diff)
downloadenlightenment-d7ad6e027bf11c4be5f2244c00f9131cc8472a1b.tar.gz
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 https://phab.enlightenment.org/T4648
-rw-r--r--src/modules/time/clock.c6
1 files changed, 6 insertions, 0 deletions
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;