Enlightenment CVS committal Author : ningerso Project : e17 Module : libs/ewl
Dir : e17/libs/ewl/src/bin/tests/dnd_snoop Modified Files: ewl_dnd_snoop.c Log Message: Fix data request struct naming. Additional event snooping for DND test. =================================================================== RCS file: /cvs/e/e17/libs/ewl/src/bin/tests/dnd_snoop/ewl_dnd_snoop.c,v retrieving revision 1.3 retrieving revision 1.4 diff -u -3 -r1.3 -r1.4 --- ewl_dnd_snoop.c 5 Dec 2006 06:26:33 -0000 1.3 +++ ewl_dnd_snoop.c 7 Dec 2006 19:13:14 -0000 1.4 @@ -23,6 +23,7 @@ static void ewl_dnd_snoop_cb_dnd_position(Ewl_Widget *w, void *event, void *data); static void ewl_dnd_snoop_cb_dnd_drop(Ewl_Widget *w, void *event, void *data); static void ewl_dnd_snoop_cb_dnd_data(Ewl_Widget *w, void *event, void *data); +static void ewl_dnd_snoop_cb_dnd_data_request(Ewl_Widget *w, void *event, void *data); static int ewl_dnd_snoop_cb_enter(void *data, int type, void *ev); static int ewl_dnd_snoop_cb_position(void *data, int type, void *ev); @@ -94,6 +95,7 @@ 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); ewl_callback_append(o, EWL_CALLBACK_DND_DATA_RECEIVED, ewl_dnd_snoop_cb_dnd_data, NULL); + ewl_callback_append(o, EWL_CALLBACK_DND_DATA_REQUEST, ewl_dnd_snoop_cb_dnd_data_request, NULL); ewl_widget_name_set(o, "entry"); ewl_entry_multiline_set(EWL_ENTRY(o), TRUE); ewl_text_wrap_set(EWL_TEXT(o), TRUE); @@ -173,6 +175,14 @@ { Ewl_Event_Dnd_Data_Received *ev = event; printf("Data event on widget %p: %p length %d\n", w, ev->data, ev->len); +} + +static void +ewl_dnd_snoop_cb_dnd_data_request(Ewl_Widget *w, void *event, + void *data __UNUSED__) +{ + Ewl_Event_Dnd_Data_Request *ev = event; + printf("Data request on widget %p: type %s\n", w, ev->type); } static int ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs