Enlightenment CVS committal Author : ningerso Project : e17 Module : libs/ewl
Dir : e17/libs/ewl/src/bin/tests Modified Files: ewl_dnd_snoop.c Log Message: Update the DND snoop test target to accept specific data types. =================================================================== RCS file: /cvs/e/e17/libs/ewl/src/bin/tests/ewl_dnd_snoop.c,v retrieving revision 1.6 retrieving revision 1.7 diff -u -3 -r1.6 -r1.7 --- ewl_dnd_snoop.c 5 Sep 2006 02:16:03 -0000 1.6 +++ ewl_dnd_snoop.c 7 Sep 2006 18:55:24 -0000 1.7 @@ -46,7 +46,7 @@ static int create_test(Ewl_Container *box) { - + const char *text_types[] = { "UTF8_STRING", "text/plain", NULL }; Ewl_Widget *scroll, *o; /* Register DND handlers */ @@ -70,6 +70,7 @@ ewl_dnd_snoop_cb_finished, NULL); o = ewl_entry_new(); + ewl_dnd_accepts_types_set(o, text_types); ewl_container_child_append(EWL_CONTAINER(box), o); ewl_callback_append(o, EWL_CALLBACK_DND_POSITION, ewl_dnd_snoop_cb_dnd_position, NULL); ewl_callback_append(o, EWL_CALLBACK_DND_DROP, ewl_dnd_snoop_cb_dnd_drop, NULL); @@ -140,7 +141,7 @@ void *data __UNUSED__) { Ewl_Event_Dnd_Data *ev = event; - printf("Data event on widget %p: %p lenght %d\n", w, ev->data, ev->len); + printf("Data event on widget %p: %p length %d\n", w, ev->data, ev->len); } static void ------------------------------------------------------------------------- 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