entrance: handle the sent theme list

devs/bu5hm4n/develop
Marcel Hollerbach 8 years ago
parent e2d84f4331
commit 64c052b844
  1. 5
      src/bin/entrance_connect.c
  2. 13
      src/bin/entrance_gui.c
  3. 2
      src/bin/entrance_gui.h

@ -102,6 +102,11 @@ _entrance_connect_read_cb(const void *data, size_t size EINA_UNUSED, void *user_
PT("Pools received\n");
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
{
PT("UNKNOW signal ");

@ -41,6 +41,7 @@ struct Entrance_Gui_
Eina_List *user_pools;
Eina_List *theme_background_pool;
Eina_List *theme_icon_pool;
Eina_List *themes;
Entrance_Xsession *selected_session;
Ecore_Event_Handler *handler;
const char *theme;
@ -513,6 +514,18 @@ entrance_gui_pools_set(const Entrance_Pools *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
entrance_gui_theme_name_set(const char *theme)
{

@ -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);
void entrance_gui_themes_set(Eina_List *list);
Eina_List* entrance_gui_themes_get(void);
/*
char *entrance_gui_user_get();

Loading…
Cancel
Save