Enlightenment CVS committal

Author  : codewarrior
Project : e17
Module  : proto

Dir     : e17/proto/etk/src/lib


Modified Files:
        etk_dnd.c 


Log Message:
patch from lok to avoid dnd problem if theres no dnd widget available

===================================================================
RCS file: /cvs/e/e17/proto/etk/src/lib/etk_dnd.c,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -3 -r1.11 -r1.12
--- etk_dnd.c   2 Mar 2006 14:37:50 -0000       1.11
+++ etk_dnd.c   4 May 2006 22:05:55 -0000       1.12
@@ -153,7 +153,7 @@
    if(_etk_dnd_types != NULL && _etk_dnd_types_num >= 0)
    {
       for (i = 0; i < _etk_dnd_types_num; i++)
-       if(_etk_dnd_types[i]) free(_etk_dnd_types[i]);
+         if(_etk_dnd_types[i]) free(_etk_dnd_types[i]);
    }
    
    if(_etk_dnd_types != NULL) free(_etk_dnd_types);
@@ -296,6 +296,9 @@
    //printf("drop\n");
    ev = event;
    
+       if (!_etk_dnd_widget)
+               return 0;
+
    /* first case - if we dont have a type preferece, send everyting */
    if(_etk_dnd_widget->dnd_types == NULL || _etk_dnd_widget->dnd_types_num <= 
0)
    {




-------------------------------------------------------
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