entrance: new setter for the gui pools
This commit is contained in:
parent
12bc0f45c9
commit
bd274e44f7
|
@ -38,6 +38,7 @@ struct Entrance_Gui_
|
|||
Eina_List *actions;
|
||||
Eina_List *background_pool;
|
||||
Eina_List *icon_pool;
|
||||
Eina_List *user_pools;
|
||||
Eina_List *theme_background_pool;
|
||||
Eina_List *theme_icon_pool;
|
||||
Entrance_Xsession *selected_session;
|
||||
|
@ -458,30 +459,6 @@ entrance_gui_xsessions_get(void)
|
|||
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);
|
||||
eina_stringshare_del(img->group);
|
||||
free(img);
|
||||
}
|
||||
_gui->background_pool = conf->background_pool;
|
||||
}
|
||||
|
||||
if (conf->icon_pool)
|
||||
{
|
||||
EINA_LIST_FREE(_gui->icon_pool, img)
|
||||
{
|
||||
eina_stringshare_del(img->path);
|
||||
eina_stringshare_del(img->group);
|
||||
free(img);
|
||||
}
|
||||
_gui->icon_pool = conf->icon_pool;
|
||||
}
|
||||
|
||||
if (_gui->bg.path != conf->bg.path)
|
||||
{
|
||||
if ((conf->bg.path) && (*conf->bg.path))
|
||||
|
@ -515,6 +492,36 @@ entrance_gui_conf_set(const Entrance_Conf_Gui_Event *conf)
|
|||
_entrance_gui_update();
|
||||
}
|
||||
|
||||
void
|
||||
entrance_gui_pools_set(const Entrance_Pools *pool)
|
||||
{
|
||||
Entrance_Image *img;
|
||||
EINA_LIST_FREE(_gui->background_pool, img)
|
||||
{
|
||||
eina_stringshare_del(img->path);
|
||||
eina_stringshare_del(img->group);
|
||||
free(img);
|
||||
}
|
||||
_gui->background_pool = pool->background_pool;
|
||||
|
||||
EINA_LIST_FREE(_gui->icon_pool, img)
|
||||
{
|
||||
eina_stringshare_del(img->path);
|
||||
eina_stringshare_del(img->group);
|
||||
free(img);
|
||||
}
|
||||
_gui->icon_pool = pool->icon_pool;
|
||||
|
||||
EINA_LIST_FREE(_gui->user_pools, img)
|
||||
{
|
||||
eina_stringshare_del(img->path);
|
||||
eina_stringshare_del(img->group);
|
||||
free(img);
|
||||
}
|
||||
_gui->user_pools = pool->user_pools;
|
||||
|
||||
}
|
||||
|
||||
void
|
||||
entrance_gui_theme_name_set(const char *theme)
|
||||
{
|
||||
|
|
|
@ -30,6 +30,8 @@ const char *entrance_gui_theme_path_get(void);
|
|||
void entrance_gui_user_bg_set(const char *path, const char *group);
|
||||
Eina_List* entrance_gui_background_pool_get(void);
|
||||
Eina_List* entrance_gui_icon_pool_get(void);
|
||||
void entrance_gui_pools_set(const Entrance_Pools *pool);
|
||||
|
||||
/*
|
||||
char *entrance_gui_user_get();
|
||||
char *entrance_gui_password_get();
|
||||
|
|
Loading…
Reference in New Issue