Enlightenment CVS committal
Author : sebastid
Project : e17
Module : apps/e
Dir : e17/apps/e/src/preload
Modified Files:
e_hack.c
Log Message:
_NET_WM_ICON, isn't finished.
===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/e/src/preload/e_hack.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
--- e_hack.c 2 Jun 2005 14:56:07 -0000 1.1
+++ e_hack.c 3 Jun 2005 06:43:23 -0000 1.2
@@ -35,7 +35,7 @@
if (!a_manager) a_manager = XInternAtom(display,
"_E_HACK_MANAGER", False);
if ((env = getenv("E_LAUNCH_ID")))
- XChangeProperty(display, window, a_launch_id, XA_STRING, 8,
PropModeReplace, env, strlen(env));
+ XChangeProperty(display, window, a_launch_id, XA_STRING, 8,
PropModeReplace, (unsigned char *)env, strlen(env));
{
uid_t uid;
pid_t pid, ppid;
@@ -47,29 +47,29 @@
ppid = getppid();
snprintf(buf, sizeof(buf), "%i", uid);
- XChangeProperty(display, window, a_user_id, XA_STRING, 8,
PropModeReplace, buf, strlen(buf));
+ XChangeProperty(display, window, a_user_id, XA_STRING, 8,
PropModeReplace, (unsigned char *)buf, strlen(buf));
snprintf(buf, sizeof(buf), "%i", pid);
- XChangeProperty(display, window, a_process_id, XA_STRING, 8,
PropModeReplace, buf, strlen(buf));
+ XChangeProperty(display, window, a_process_id, XA_STRING, 8,
PropModeReplace, (unsigned char *)buf, strlen(buf));
snprintf(buf, sizeof(buf), "%i", ppid);
- XChangeProperty(display, window, a_p_process_id, XA_STRING, 8,
PropModeReplace, buf, strlen(buf));
+ XChangeProperty(display, window, a_p_process_id, XA_STRING, 8,
PropModeReplace, (unsigned char *)buf, strlen(buf));
if (!uname(&ubuf))
{
snprintf(buf, sizeof(buf), "%s", ubuf.nodename);
- XChangeProperty(display, window, a_machine_name, XA_STRING, 8,
PropModeReplace, buf, strlen(buf));
+ XChangeProperty(display, window, a_machine_name, XA_STRING, 8,
PropModeReplace, (unsigned char *)buf, strlen(buf));
}
else
- XChangeProperty(display, window, a_machine_name, XA_STRING, 8,
PropModeReplace, " ", 1);
+ XChangeProperty(display, window, a_machine_name, XA_STRING, 8,
PropModeReplace, (unsigned char *)" ", 1);
}
if ((env = getenv("USER")))
- XChangeProperty(display, window, a_user_name, XA_STRING, 8,
PropModeReplace, env, strlen(env));
+ XChangeProperty(display, window, a_user_name, XA_STRING, 8,
PropModeReplace, (unsigned char *)env, strlen(env));
if ((env = getenv("E_DESK")))
- XChangeProperty(display, window, a_desk, XA_STRING, 8, PropModeReplace,
env, strlen(env));
+ XChangeProperty(display, window, a_desk, XA_STRING, 8, PropModeReplace,
(unsigned char *)env, strlen(env));
if ((env = getenv("E_ZONE")))
- XChangeProperty(display, window, a_zone, XA_STRING, 8, PropModeReplace,
env, strlen(env));
+ XChangeProperty(display, window, a_zone, XA_STRING, 8, PropModeReplace,
(unsigned char *)env, strlen(env));
if ((env = getenv("E_CONTAINER")))
- XChangeProperty(display, window, a_container, XA_STRING, 8,
PropModeReplace, env, strlen(env));
+ XChangeProperty(display, window, a_container, XA_STRING, 8,
PropModeReplace, (unsigned char *)env, strlen(env));
if ((env = getenv("E_MANAGER")))
- XChangeProperty(display, window, a_manager, XA_STRING, 8,
PropModeReplace, env, strlen(env));
+ XChangeProperty(display, window, a_manager, XA_STRING, 8,
PropModeReplace, (unsigned char *)env, strlen(env));
}
/* XCreateWindow intercept hack */
-------------------------------------------------------
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