summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarsten Haitzler <raster@rasterman.com>2004-12-01 07:01:31 +0000
committerCarsten Haitzler <raster@rasterman.com>2004-12-01 07:01:31 +0000
commit5ce01dc4d3b6720bf2cf306eabae93d4b2e7a47d (patch)
tree13af1386d540f9fdeff788c7ca476cebf0fc4a67
parent080b56ed3d3b41d9f4ecfc87a05a6c3bb59d57e4 (diff)
readme additiosn for the not so careful out there...
wiljanes bg set ipc... SVN revision: 12323
-rw-r--r--README10
-rw-r--r--src/bin/e_ipc.c29
-rw-r--r--src/bin/e_ipc.h1
-rw-r--r--src/bin/e_remote_main.c10
4 files changed, 50 insertions, 0 deletions
diff --git a/README b/README
index 7ec1917..bc00932 100644
--- a/README
+++ b/README
@@ -1 +1,11 @@
1Enlightenment 0.17.0 - IN DEVELOPMENT... not a RELEASE. 1Enlightenment 0.17.0 - IN DEVELOPMENT... not a RELEASE.
2
3NOTE: Users of DR16 will need to rename the $prefix/bin/enlightenment
4file prior to installing DR17 or it will be overwritten.
5
6You can also use the configure --prefix option to put e17 in a separate tree
7of its own (recommended) like:
8
9 ./configure --prefix=/usr/local/e17
10
11You will, as usual need to add the subsequent bin dir to your $PATH etc.
diff --git a/src/bin/e_ipc.c b/src/bin/e_ipc.c
index e05e44d..9d0f986 100644
--- a/src/bin/e_ipc.c
+++ b/src/bin/e_ipc.c
@@ -169,6 +169,35 @@ _e_ipc_cb_client_data(void *data, int type, void *event)
169 free(data); 169 free(data);
170 } 170 }
171 break; 171 break;
172 case E_IPC_OP_BG_SET:
173 {
174 char *file;
175 char *valstr;
176 Evas_List *cl;
177 int cont;
178
179
180 file = malloc(e->size + 1);
181 file[e->size] = 0;
182 memcpy(file, e->data, e->size);
183
184 valstr=strdup("desktop/background");
185 cl=edje_file_collection_list(file);
186 cont=1;
187 while(cl && cont)
188 {
189 if(!strcmp(cl->data,valstr))
190 {
191 cont=0;
192 ecore_config_string_set("e.desktop.default.background", file);
193 }
194 else
195 cl++;
196 }
197 edje_file_collection_list_free(cl);
198 free(valstr);
199 free(file);
200 }
172 default: 201 default:
173 break; 202 break;
174 } 203 }
diff --git a/src/bin/e_ipc.h b/src/bin/e_ipc.h
index 17b1cc9..384bd25 100644
--- a/src/bin/e_ipc.h
+++ b/src/bin/e_ipc.h
@@ -18,6 +18,7 @@ typedef enum _E_Ipc_Op {
18 E_IPC_OP_MODULE_DISABLE, 18 E_IPC_OP_MODULE_DISABLE,
19 E_IPC_OP_MODULE_LIST, 19 E_IPC_OP_MODULE_LIST,
20 E_IPC_OP_MODULE_LIST_REPLY, 20 E_IPC_OP_MODULE_LIST_REPLY,
21 E_IPC_OP_BG_SET,
21 E_IPC_OP_LAST 22 E_IPC_OP_LAST
22} E_Ipc_Op; 23} E_Ipc_Op;
23 24
diff --git a/src/bin/e_remote_main.c b/src/bin/e_remote_main.c
index 240b314..85d68c8 100644
--- a/src/bin/e_remote_main.c
+++ b/src/bin/e_remote_main.c
@@ -177,6 +177,16 @@ _e_ipc_cb_server_add(void *data, int type, void *event)
177 0/*ref*/, 0/*ref_to*/, 0/*response*/, 177 0/*ref*/, 0/*ref_to*/, 0/*response*/,
178 NULL, 0); 178 NULL, 0);
179 } 179 }
180 else if ((!strcmp(argv[i], "-bg-set")) && (i < (argc - 1)))
181 {
182 i++;
183 v = argv[i];
184 ecore_ipc_server_send(_e_ipc_server,
185 E_IPC_DOMAIN_REQUEST,
186 E_IPC_OP_BG_SET,
187 0/*ref*/, 0/*ref_to*/, 0/*response*/,
188 v, strlen(v));
189 }
180 } 190 }
181 if (reply_count >= reply_expect) ecore_main_loop_quit(); 191 if (reply_count >= reply_expect) ecore_main_loop_quit();
182 return 1; 192 return 1;