From 36872afc132e21b2bfcd348c06eb93502ec62348 Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Fri, 27 Jul 2012 12:08:52 +0000 Subject: [PATCH] ensure that gadman checks for the client class in populated classes before requesting a populate; this should never ever be necessary SVN revision: 74486 --- src/modules/gadman/e_mod_gadman.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/modules/gadman/e_mod_gadman.c b/src/modules/gadman/e_mod_gadman.c index 6ad143c0a..657d6bb41 100644 --- a/src/modules/gadman/e_mod_gadman.c +++ b/src/modules/gadman/e_mod_gadman.c @@ -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)