ensure that gadman checks for the client class in populated classes before requesting a populate; this should never ever be necessary

SVN revision: 74486
This commit is contained in:
Mike Blumenkrantz 2012-07-27 12:08:52 +00:00
parent 5a6e5ec964
commit 36872afc13
1 changed files with 11 additions and 0 deletions

View File

@ -192,10 +192,21 @@ static E_Gadcon_Client *
gadman_gadget_place(E_Gadcon_Client *gcc, const E_Gadcon_Client_Class *cc, E_Config_Gadcon_Client *cf, Gadman_Layer_Type layer, E_Zone *zone)
{
E_Gadcon *gc;
Eina_List *l;
if (!cf->name) return NULL;
gc = gadman_gadcon_get(zone, layer);
if (!cc)
{
EINA_LIST_FOREACH(gc->populated_classes, l, cc)
{
if (!strcmp(cc->name, cf->name))
break;
else
cc = NULL;
}
}
/* Find provider */
if (!cc)