Enlightenment CVS committal
Author : rbdpngn
Project : e17
Module : libs/ecore
Dir : e17/libs/ecore/src/bin
Modified Files:
ecore_test.c
Log Message:
API for manipulating the WM_CLIENT_MACHINE string.
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ecore/src/bin/ecore_test.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -3 -r1.5 -r1.6
--- ecore_test.c 12 Oct 2003 06:55:40 -0000 1.5
+++ ecore_test.c 12 Oct 2003 17:35:35 -0000 1.6
@@ -456,6 +456,19 @@
}
int
+handler_x_window_prop_client_machine_change(void *data, int type, void *event)
+{
+ Ecore_X_Event_Window_Prop_Client_Machine_Change *e;
+
+ e = event;
+ if (e->name)
+ printf("Client machine change to \"%s\"\n", e->name);
+ else
+ printf("Client machine deleted\n");
+ return 1;
+}
+
+int
handler_x_window_prop_name_class_change(void *data, int type, void *event)
{
Ecore_X_Event_Window_Prop_Name_Class_Change *e;
@@ -504,6 +517,15 @@
tmp = ecore_x_window_prop_visible_icon_name_get(win);
}
printf("Visible icon Name: %s\n", tmp);
+ free(tmp);
+ tmp = ecore_x_window_prop_client_machine_get(win);
+ if (!tmp)
+ {
+ printf("No client machine, setting it to host.test.com\n");
+ ecore_x_window_prop_client_machine_set(win, "host.test.com");
+ tmp = ecore_x_window_prop_client_machine_get(win);
+ }
+ printf("Client machine: %s\n", tmp);
free(tmp);
ecore_x_window_prop_name_class_set(win, "ecore_test", "main");
ecore_x_window_prop_protocol_set(win, ECORE_X_WM_PROTOCOL_DELETE_REQUEST, 1);
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
SourceForge.net hosts over 70,000 Open Source Projects.
See the people who have HELPED US provide better services:
Click here: http://sourceforge.net/supporters.php
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs