forked from enlightenment/enlightenment
do not attempt to populate gadgets during type_add if site has not yet been populated
mostly just fixes some ERRs on init
This commit is contained in:
parent
4e7c505536
commit
0a9b8889e0
|
@ -1360,9 +1360,10 @@ e_gadget_type_add(const char *type, E_Gadget_Create_Cb callback, E_Gadget_Wizard
|
|||
t->wizard = wizard;
|
||||
eina_hash_add(gadget_types, type, t);
|
||||
EINA_LIST_FOREACH(sites->sites, l, zgs)
|
||||
EINA_LIST_FOREACH(zgs->gadgets, ll, zgc)
|
||||
if (eina_streq(type, zgc->type))
|
||||
_gadget_object_create(zgc);
|
||||
if (zgs->layout)
|
||||
EINA_LIST_FOREACH(zgs->gadgets, ll, zgc)
|
||||
if (eina_streq(type, zgc->type))
|
||||
_gadget_object_create(zgc);
|
||||
}
|
||||
|
||||
E_API void
|
||||
|
|
Loading…
Reference in New Issue