Enlightenment CVS committal
Author : raster
Project : e17
Module : apps/e
Dir : e17/apps/e/src/bin
Modified Files:
e_ipc.c e_ipc_handlers.h
Log Message:
bg set...
===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/e/src/bin/e_ipc.c,v
retrieving revision 1.32
retrieving revision 1.33
diff -u -3 -r1.32 -r1.33
--- e_ipc.c 31 May 2005 03:04:02 -0000 1.32
+++ e_ipc.c 31 May 2005 03:17:40 -0000 1.33
@@ -78,37 +78,6 @@
#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;
===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/e/src/bin/e_ipc_handlers.h,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
--- e_ipc_handlers.h 31 May 2005 03:01:53 -0000 1.1
+++ e_ipc_handlers.h 31 May 2005 03:17:40 -0000 1.2
@@ -216,6 +216,34 @@
#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
+
-------------------------------------------------------
This SF.Net email is sponsored by Yahoo.
Introducing Yahoo! Search Developer Network - Create apps using Yahoo!
Search APIs Find out how you can build Yahoo! directly into your own
Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs