Enlightenment CVS committal

Author  : raster
Project : e17
Module  : libs/ecore

Dir     : e17/libs/ecore/src/bin


Modified Files:
      Tag: SPLIT
        ecore_test.c 


Log Message:


example of porperty change to event translation... eventually might want to
turn the property one into a table...

===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ecore/src/bin/Attic/ecore_test.c,v
retrieving revision 1.1.2.11
retrieving revision 1.1.2.12
diff -u -3 -r1.1.2.11 -r1.1.2.12
--- ecore_test.c        4 Feb 2003 22:35:42 -0000       1.1.2.11
+++ ecore_test.c        5 Feb 2003 06:51:57 -0000       1.1.2.12
@@ -184,6 +184,32 @@
 }
 
 int
+handler_x_window_prop_title_change(int type, void *event, void *data)
+{
+   Ecore_X_Event_Window_Prop_Title_Change *e;
+   
+   e = event;
+   if (e->title)
+     printf("Title change to \"%s\"\n", e->title);
+   else
+     printf("Title deleted\n");
+   return 1;
+}
+
+int
+handler_x_window_prop_name_class_change(int type, void *event, void *data)
+{
+   Ecore_X_Event_Window_Prop_Name_Class_Change *e;
+   
+   e = event;
+   if ((e->name) && (e->clas))
+     printf("Name & Class change to \"%s\".\"%s\"\n", e->name, e->clas);
+   else
+     printf("Name & Class deleted\n");
+   return 1;
+}
+
+int
 main(int argc, const char **argv)
 {
    start_time = ecore_time_get();
@@ -217,6 +243,8 @@
    ecore_event_handler_add(ECORE_EVENT_X_WINDOW_DESTROY, handler_x_window_destroy, 
NULL);
    ecore_event_handler_add(ECORE_EVENT_X_WINDOW_CONFIGURE, 
handler_x_window_configure, NULL);
    ecore_event_handler_add(ECORE_EVENT_X_WINDOW_DELETE_REQUEST, 
handler_x_window_delete_request, NULL);
+   ecore_event_handler_add(ECORE_EVENT_X_WINDOW_PROP_TITLE_CHANGE, 
+handler_x_window_prop_title_change, NULL);
+   ecore_event_handler_add(ECORE_EVENT_X_WINDOW_PROP_NAME_CLASS_CHANGE, 
+handler_x_window_prop_name_class_change, NULL);
 
    ecore_x_flush();
    




-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to