Enlightenment CVS committal
Author : raster
Project : e17
Module : apps/e
Dir : e17/apps/e/src/bin
Modified Files:
e_ipc.c e_ipc.h e_remote_main.c
Log Message:
readme additiosn for the not so careful out there...
wiljanes bg set ipc...
===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/e/src/bin/e_ipc.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -3 -r1.2 -r1.3
--- e_ipc.c 26 Nov 2004 12:20:38 -0000 1.2
+++ e_ipc.c 1 Dec 2004 07:01:31 -0000 1.3
@@ -169,6 +169,35 @@
free(data);
}
break;
+ case E_IPC_OP_BG_SET:
+ {
+ char *file;
+ char *valstr;
+ Evas_List *cl;
+ int cont;
+
+
+ file = malloc(e->size + 1);
+ file[e->size] = 0;
+ memcpy(file, e->data, e->size);
+
+ valstr=strdup("desktop/background");
+ cl=edje_file_collection_list(file);
+ cont=1;
+ while(cl && cont)
+ {
+ if(!strcmp(cl->data,valstr))
+ {
+ cont=0;
+ ecore_config_string_set("e.desktop.default.background", file);
+ }
+ else
+ cl++;
+ }
+ edje_file_collection_list_free(cl);
+ free(valstr);
+ free(file);
+ }
default:
break;
}
===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/e/src/bin/e_ipc.h,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -3 -r1.3 -r1.4
--- e_ipc.h 26 Nov 2004 12:20:38 -0000 1.3
+++ e_ipc.h 1 Dec 2004 07:01:31 -0000 1.4
@@ -18,6 +18,7 @@
E_IPC_OP_MODULE_DISABLE,
E_IPC_OP_MODULE_LIST,
E_IPC_OP_MODULE_LIST_REPLY,
+ E_IPC_OP_BG_SET,
E_IPC_OP_LAST
} E_Ipc_Op;
===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/e/src/bin/e_remote_main.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -3 -r1.2 -r1.3
--- e_remote_main.c 26 Nov 2004 12:20:38 -0000 1.2
+++ e_remote_main.c 1 Dec 2004 07:01:31 -0000 1.3
@@ -177,6 +177,16 @@
0/*ref*/, 0/*ref_to*/, 0/*response*/,
NULL, 0);
}
+ else if ((!strcmp(argv[i], "-bg-set")) && (i < (argc - 1)))
+ {
+ i++;
+ v = argv[i];
+ ecore_ipc_server_send(_e_ipc_server,
+ E_IPC_DOMAIN_REQUEST,
+ E_IPC_OP_BG_SET,
+ 0/*ref*/, 0/*ref_to*/, 0/*response*/,
+ v, strlen(v));
+ }
}
if (reply_count >= reply_expect) ecore_main_loop_quit();
return 1;
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs