From 6c6d35df5b5f56b7fd69caab574b54bdffa61f57 Mon Sep 17 00:00:00 2001 From: Carsten Haitzler Date: Tue, 31 May 2005 03:17:40 +0000 Subject: [PATCH] bg set... SVN revision: 15028 --- src/bin/e_ipc.c | 31 ------------------------------- src/bin/e_ipc_handlers.h | 28 ++++++++++++++++++++++++++++ 2 files changed, 28 insertions(+), 31 deletions(-) diff --git a/src/bin/e_ipc.c b/src/bin/e_ipc.c index 1945bb9dc..a8ec9b2c2 100644 --- a/src/bin/e_ipc.c +++ b/src/bin/e_ipc.c @@ -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; diff --git a/src/bin/e_ipc_handlers.h b/src/bin/e_ipc_handlers.h index cafe54d05..d5ee6a383 100644 --- a/src/bin/e_ipc_handlers.h +++ b/src/bin/e_ipc_handlers.h @@ -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 +