entrance: handle the sent theme list

This commit is contained in:
Marcel Hollerbach 2014-05-21 22:42:34 +02:00
parent e2d84f4331
commit 64c052b844
3 changed files with 20 additions and 0 deletions

View File

@ -102,6 +102,11 @@ _entrance_connect_read_cb(const void *data, size_t size EINA_UNUSED, void *user_
PT("Pools received\n"); PT("Pools received\n");
entrance_gui_pools_set(&(eev->event.pools)); entrance_gui_pools_set(&(eev->event.pools));
} }
else if (eev->type == ENTRANCE_EVENT_THEMES)
{
PT("Themes received\n");
entrance_gui_themes_set(eev->event.themes.themes);
}
else else
{ {
PT("UNKNOW signal "); PT("UNKNOW signal ");

View File

@ -41,6 +41,7 @@ struct Entrance_Gui_
Eina_List *user_pools; Eina_List *user_pools;
Eina_List *theme_background_pool; Eina_List *theme_background_pool;
Eina_List *theme_icon_pool; Eina_List *theme_icon_pool;
Eina_List *themes;
Entrance_Xsession *selected_session; Entrance_Xsession *selected_session;
Ecore_Event_Handler *handler; Ecore_Event_Handler *handler;
const char *theme; const char *theme;
@ -513,6 +514,18 @@ entrance_gui_pools_set(const Entrance_Pools *pool)
_gui->icon_pool = pool->icon_pool; _gui->icon_pool = pool->icon_pool;
} }
void
entrance_gui_themes_set(Eina_List *list)
{
_gui->themes = list;
}
Eina_List*
entrance_gui_themes_get(void)
{
return _gui->themes;
}
void void
entrance_gui_theme_name_set(const char *theme) entrance_gui_theme_name_set(const char *theme)
{ {

View File

@ -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_background_pool_get(void);
Eina_List* entrance_gui_icon_pool_get(void); Eina_List* entrance_gui_icon_pool_get(void);
void entrance_gui_pools_set(const Entrance_Pools *pool); void entrance_gui_pools_set(const Entrance_Pools *pool);
void entrance_gui_themes_set(Eina_List *list);
Eina_List* entrance_gui_themes_get(void);
/* /*
char *entrance_gui_user_get(); char *entrance_gui_user_get();