bg set...

SVN revision: 15028
This commit is contained in:
Carsten Haitzler 2005-05-31 03:17:40 +00:00
parent 511cee76aa
commit 6c6d35df5b
2 changed files with 28 additions and 31 deletions

View File

@ -78,37 +78,6 @@ _e_ipc_cb_client_data(void *data __UNUSED__, int type __UNUSED__, void *event)
#undef TYPE
/* here to steal from to port over to the new e_ipc_handlers.h */
#if 0
case E_IPC_OP_BG_SET:
{
char *file = NULL;
if (e_ipc_codec_str_dec(e->data, e->size, &file))
{
Evas_List *managers, *l;
E_FREE(e_config->desktop_default_background);
e_config->desktop_default_background = file;
managers = e_manager_list();
for (l = managers; l; l = l->next)
{
Evas_List *ll;
E_Manager *man;
man = l->data;
for (ll = man->containers; ll; ll = ll->next)
{
E_Container *con;
E_Zone *zone;
con = ll->data;
zone = e_zone_current_get(con);
e_zone_bg_reconfigure(zone);
}
}
e_config_save_queue();
}
}
break;
case E_IPC_OP_BG_GET:
{
void *data;

View File

@ -216,6 +216,34 @@ ecore_ipc_client_send(e->client, E_IPC_DOMAIN_REPLY, __opcode, 0, 0, 0, data, by
#endif
#undef HANDLER
/****************************************************************************/
#define HANDLER E_IPC_OP_BG_SET
#if (TYPE == E_REMOTE_OPTIONS)
{"-default-bg-set", 1, "Set the default background edje to the desktop background in the file 'OPT1' (must be a full path)", 0, HANDLER},
#elif (TYPE == E_REMOTE_OUT)
REQ_STRING(params[0], HANDLER);
#elif (TYPE == E_WM_IN)
STRING(s, HANDLER);
Evas_List *l, *ll;
E_Manager *man;
E_Container *con;
E_Zone *zone;
E_FREE(e_config->desktop_default_background);
e_config->desktop_default_background = strdup(s);
for (l = e_manager_list(); l; l = l->next) {
man = l->data;
for (ll = man->containers; ll; ll = ll->next) {
con = ll->data;
zone = e_zone_current_get(con);
e_zone_bg_reconfigure(zone);
}
}
SAVE;
END_STRING(s);
#elif (TYPE == E_REMOTE_IN)
#endif
#undef HANDLER