Add del hook

module unload will delete gadcons, so we need to cleanup in gadman as
well.

SVN revision: 55681
This commit is contained in:
Sebastian Dransfeld 2010-12-21 03:05:37 +00:00
parent bcc5351764
commit b44d0038a1
1 changed files with 1 additions and 0 deletions

View File

@ -186,6 +186,7 @@ gadman_gadget_place(E_Config_Gadcon_Client *cf, Gadman_Layer_Type layer, E_Zone
/* init Gadcon_Client */
gcc = cc->func.init(gc, cf->name, cf->id, cc->default_style);
if (!gcc) return NULL;
e_object_del_func_set(E_OBJECT(gcc), E_OBJECT_CLEANUP_FUNC(gadman_gadget_del));
gcc->cf = cf;
gcc->client_class = cc;