Enlightenment CVS committal

Author  : ningerso
Project : e17
Module  : libs/ecore

Dir     : e17/libs/ecore/src/lib/ecore_x


Modified Files:
        Ecore_X.h ecore_x_selection.c 


Log Message:
Move the content description for the selection notify into the data.
Add the content description in provided parsers.

===================================================================
RCS file: /cvs/e/e17/libs/ecore/src/lib/ecore_x/Ecore_X.h,v
retrieving revision 1.169
retrieving revision 1.170
diff -u -3 -r1.169 -r1.170
--- Ecore_X.h   7 Jun 2006 23:30:13 -0000       1.169
+++ Ecore_X.h   14 Jul 2006 09:37:11 -0000      1.170
@@ -548,6 +548,10 @@
    Ecore_X_Selection          selection;
    char                      *target;
    void                      *data;
+};
+
+struct _Ecore_X_Selection_Data
+{
    enum {
        ECORE_X_SELECTION_CONTENT_NONE,
        ECORE_X_SELECTION_CONTENT_TEXT,
@@ -555,10 +559,6 @@
        ECORE_X_SELECTION_CONTENT_TARGETS,
        ECORE_X_SELECTION_CONTENT_CUSTOM
    } content;
-};
-
-struct _Ecore_X_Selection_Data
-{
    unsigned char    *data;
    int               length;
 
===================================================================
RCS file: /cvs/e/e17/libs/ecore/src/lib/ecore_x/ecore_x_selection.c,v
retrieving revision 1.28
retrieving revision 1.29
diff -u -3 -r1.28 -r1.29
--- ecore_x_selection.c 6 Jan 2006 20:22:09 -0000       1.28
+++ ecore_x_selection.c 14 Jul 2006 09:37:11 -0000      1.29
@@ -679,6 +679,9 @@
    free(tmp);
    free(data);
 
+   ECORE_X_SELECTION_DATA(sel)->content = ECORE_X_SELECTION_CONTENT_FILES;
+   ECORE_X_SELECTION_DATA(sel)->length = sel->num_files;
+
    return ECORE_X_SELECTION_DATA(sel);
 }
 
@@ -715,6 +718,8 @@
      }
 
    sel->text = (char *)data;
+   ECORE_X_SELECTION_DATA(sel)->length = size;
+   ECORE_X_SELECTION_DATA(sel)->content = ECORE_X_SELECTION_CONTENT_TEXT;
    ECORE_X_SELECTION_DATA(sel)->free = _ecore_x_selection_data_text_free;
    return sel;
 }
@@ -747,6 +752,8 @@
    free(data);
 
    ECORE_X_SELECTION_DATA(sel)->free = _ecore_x_selection_data_targets_free;
+   ECORE_X_SELECTION_DATA(sel)->content = ECORE_X_SELECTION_CONTENT_TARGETS;
+   ECORE_X_SELECTION_DATA(sel)->length = size;
    return sel;
 }
 




-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to