entrance: temporary fix this mess

This commit is contained in:
Michaël Bouchaud (yoz) 2014-05-13 18:00:26 +02:00
parent f3bfb371ce
commit de2f271f03
1 changed files with 19 additions and 12 deletions

View File

@ -459,6 +459,9 @@ void
entrance_gui_conf_set(const Entrance_Conf_Gui_Event *conf)
{
Entrance_Image *img;
if (conf->background_pool)
{
EINA_LIST_FREE(_gui->background_pool, img)
{
eina_stringshare_del(img->path);
@ -466,7 +469,10 @@ entrance_gui_conf_set(const Entrance_Conf_Gui_Event *conf)
free(img);
}
_gui->background_pool = conf->background_pool;
}
if (conf->icon_pool)
{
EINA_LIST_FREE(_gui->icon_pool, img)
{
eina_stringshare_del(img->path);
@ -474,6 +480,7 @@ entrance_gui_conf_set(const Entrance_Conf_Gui_Event *conf)
free(img);
}
_gui->icon_pool = conf->icon_pool;
}
if (_gui->bg.path != conf->bg.path)
{