Enlightenment CVS committal Author : handyande Project : misc Module : engage
Dir : misc/engage/src/module Modified Files: e_mod_main.c Log Message: get a proper file list =================================================================== RCS file: /cvsroot/enlightenment/misc/engage/src/module/e_mod_main.c,v retrieving revision 1.31 retrieving revision 1.32 diff -u -3 -r1.31 -r1.32 --- e_mod_main.c 24 Mar 2005 17:04:00 -0000 1.31 +++ e_mod_main.c 24 Mar 2005 19:25:53 -0000 1.32 @@ -909,7 +909,7 @@ ev = event; /* FIXME - we do not really want plain text files! */ - ecore_x_selection_xdnd_request(ev->win, "text/plain"); + ecore_x_selection_xdnd_request(ev->win, "text/uri-list"); return 1; } @@ -917,13 +917,12 @@ _engage_cb_event_dnd_selection(void *data, int type, void *event) { Ecore_X_Event_Selection_Notify *ev; - int i, len; - char *buf; + int i; ev = event; - ecore_x_selection_xdnd_request_data_get(&buf, &len); - printf("ENGAGE DND GOT %s\n", buf); - free(buf); + + for (i = 0; i < ev->num_files; i++) + printf("ENGAGE DND GOT %s\n", ev->files[i]); ecore_x_dnd_send_finished(); return 1; } ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs