entrance: sent the current theme name

devs/bu5hm4n/develop
Marcel Hollerbach 8 years ago
parent 64c052b844
commit 08c429ec82
  1. 1
      src/bin/entrance_connect.c
  2. 5
      src/bin/entrance_gui.c
  3. 7
      src/daemon/entrance_config.c
  4. 1
      src/daemon/entrance_server.c

@ -156,6 +156,7 @@ entrance_connect_conf_gui_send(Entrance_Conf_Gui_Event *ev)
PT("Send gui config\n");
eev.event.conf_gui.bg.path = ev->bg.path;
eev.event.conf_gui.bg.group = ev->bg.group;
eev.event.conf_gui.theme = ev->theme;
eev.type = ENTRANCE_EVENT_CONF_GUI;
entrance_event_send(&eev);

@ -488,7 +488,10 @@ entrance_gui_conf_set(const Entrance_Conf_Gui_Event *conf)
_gui->vkbd_enabled = conf->vkbd_enabled;
_gui->changed &= ENTRANCE_CONF_VKBD;
}
if (_gui->theme != conf->theme)
{
_gui->theme = conf->theme;
}
_gui->changed = ~(ENTRANCE_CONF_NONE);
_entrance_gui_update();
}

@ -224,7 +224,12 @@ entrance_config_set(const Entrance_Conf_Gui_Event *conf)
if (!update)
update = EINA_TRUE;
}
if (conf->theme != entrance_config->theme)
{
entrance_config->theme = conf->theme;
if (!update)
update = EINA_TRUE;
}
if (update)
{
PT("Config save\n");

@ -39,6 +39,7 @@ _entrance_server_add(void *data EINA_UNUSED, int type EINA_UNUSED, void *event E
eev.event.conf_gui.enabled = EINA_TRUE;
eev.event.conf_gui.bg.path = entrance_config->bg.path;
eev.event.conf_gui.bg.group = entrance_config->bg.group;
eev.event.conf_gui.theme = entrance_config->theme;
entrance_event_send(&eev);
}
PT("Sending pools\n");

Loading…
Cancel
Save