summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@osg.samsung.com>2016-09-08 10:29:22 -0400
committerMike Blumenkrantz <zmike@osg.samsung.com>2016-09-08 10:29:22 -0400
commit0a9b8889e0730774ae9c6183e6ff8a72455a0e02 (patch)
treed4ba5db0eb04a012b084092015be471441f6378e
parent4e7c50553619feb46e1e1bcfe24c0d8e95750d1f (diff)
do not attempt to populate gadgets during type_add if site has not yet been populated
mostly just fixes some ERRs on init
-rw-r--r--src/bin/e_gadget.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/bin/e_gadget.c b/src/bin/e_gadget.c
index ba5e41a0e..7f464927b 100644
--- a/src/bin/e_gadget.c
+++ b/src/bin/e_gadget.c
@@ -1360,9 +1360,10 @@ e_gadget_type_add(const char *type, E_Gadget_Create_Cb callback, E_Gadget_Wizard
1360 t->wizard = wizard; 1360 t->wizard = wizard;
1361 eina_hash_add(gadget_types, type, t); 1361 eina_hash_add(gadget_types, type, t);
1362 EINA_LIST_FOREACH(sites->sites, l, zgs) 1362 EINA_LIST_FOREACH(sites->sites, l, zgs)
1363 EINA_LIST_FOREACH(zgs->gadgets, ll, zgc) 1363 if (zgs->layout)
1364 if (eina_streq(type, zgc->type)) 1364 EINA_LIST_FOREACH(zgs->gadgets, ll, zgc)
1365 _gadget_object_create(zgc); 1365 if (eina_streq(type, zgc->type))
1366 _gadget_object_create(zgc);
1366} 1367}
1367 1368
1368E_API void 1369E_API void