entrance: added new functions to access the user pools

devs/bu5hm4n/develop
Marcel Hollerbach 8 years ago
parent 27c85e141c
commit 9a5514c6e4
  1. 26
      src/bin/entrance_gui.c
  2. 2
      src/bin/entrance_gui.h

@ -491,6 +491,32 @@ entrance_gui_conf_set(const Entrance_Conf_Gui_Event *conf)
_gui->changed = ~(ENTRANCE_CONF_NONE);
_entrance_gui_update();
}
static Entrance_User_Pool*
_entrance_gui_user_pool_get(const char *name)
{
Eina_List *node;
Entrance_User_Pool *pool;
EINA_LIST_FOREACH(_gui->user_pools, node, pool)
{
if (!strcmp(pool->name, name))
{
return pool;
}
}
return NULL;
}
Eina_List*
entrance_gui_user_icon_pool_get(const char *name)
{
return _entrance_gui_user_pool_get(name)->icon_pool;
}
Eina_List*
entrance_gui_user_background_pool_get(const char *name)
{
return _entrance_gui_user_pool_get(name)->background_pool;
}
void
entrance_gui_pools_set(const Entrance_Pools *pool)

@ -31,6 +31,8 @@ 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);
Eina_List* entrance_gui_user_icon_pool_get(const char *name);
Eina_List* entrance_gui_user_background_pool_get(const char *name);
/*
char *entrance_gui_user_get();

Loading…
Cancel
Save