aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@osg.samsung.com>2017-08-07 14:43:37 -0400
committerMike Blumenkrantz <zmike@osg.samsung.com>2017-08-18 16:51:02 -0400
commit1727098387b42190b08745eaee491b54fc45953f (patch)
treef95a3d7b30c63d10ccfe5bc31d34526513aa4d8d
parentclamp internal win min/max size hints to 0 (diff)
downloadenlightenment-1727098387b42190b08745eaee491b54fc45953f.tar.gz
set clock gadget id on creation
-rw-r--r--src/modules/time/clock.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/modules/time/clock.c b/src/modules/time/clock.c
index 99f3618ce..53d22ba8e 100644
--- a/src/modules/time/clock.c
+++ b/src/modules/time/clock.c
@@ -333,9 +333,11 @@ _conf_item_get(int *id, Eina_Bool digital)
ci = E_NEW(Config_Item, 1);
if (!*id)
- ci->id = time_config->items ? eina_list_count(time_config->items) + 1 : 1;
- else
+ *id = ci->id = time_config->items ? eina_list_count(time_config->items) + 1 : 1;
+ else if (*id < 0)
ci->id = -1;
+ else
+ ci->id = *id;
ci->weekend.start = 6;
ci->weekend.len = 2;