Enlightenment CVS committal Author : ningerso Project : e17 Module : libs/ewl
Dir : e17/libs/ewl/src/lib Modified Files: ewl_embed.c ewl_embed.h ewl_events.h Log Message: Fix data request struct naming. Additional event snooping for DND test. =================================================================== RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_embed.c,v retrieving revision 1.97 retrieving revision 1.98 diff -u -3 -r1.97 -r1.98 --- ewl_embed.c 5 Dec 2006 06:26:34 -0000 1.97 +++ ewl_embed.c 7 Dec 2006 19:13:14 -0000 1.98 @@ -1048,9 +1048,9 @@ * @brief Sends the request event for selection data received into an embed. */ void -ewl_embed_dnd_data_request_feed(Ewl_Embed *embed, char *type) +ewl_embed_dnd_data_request_feed(Ewl_Embed *embed, void *handle, char *type) { - Ewl_Event_Dnd_Data_Requested ev; + Ewl_Event_Dnd_Data_Request ev; DENTER_FUNCTION(DLEVEL_STABLE); DCHECK_PARAM_PTR("embed", embed); @@ -1064,6 +1064,7 @@ /* * setup the event struct */ + ev.handle = handle; ev.type = type; ewl_callback_call_with_event_data(embed->last.drag_widget, EWL_CALLBACK_DND_DATA_REQUEST, =================================================================== RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_embed.h,v retrieving revision 1.36 retrieving revision 1.37 diff -u -3 -r1.36 -r1.37 --- ewl_embed.h 6 Dec 2006 20:14:52 -0000 1.36 +++ ewl_embed.h 7 Dec 2006 19:13:14 -0000 1.37 @@ -114,7 +114,7 @@ const char *ewl_embed_dnd_position_feed(Ewl_Embed *embed, int x, int y,int*,int*,int*,int*); const char *ewl_embed_dnd_drop_feed(Ewl_Embed* embed, int x, int y, int internal); void ewl_embed_dnd_data_received_feed(Ewl_Embed* embed, char *type, void *data, unsigned int len, unsigned int format); -void ewl_embed_dnd_data_request_feed(Ewl_Embed* embed, char *type); +void ewl_embed_dnd_data_request_feed(Ewl_Embed* embed, void *handle, char *type); void ewl_embed_mouse_out_feed(Ewl_Embed *embed, int x, int y, unsigned int modifiers); =================================================================== RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_events.h,v retrieving revision 1.20 retrieving revision 1.21 diff -u -3 -r1.20 -r1.21 --- ewl_events.h 5 Dec 2006 06:26:34 -0000 1.20 +++ ewl_events.h 7 Dec 2006 19:13:14 -0000 1.21 @@ -239,15 +239,16 @@ /** * Provides information about dnd data requests */ -struct Ewl_Event_Dnd_Data_Requested +struct Ewl_Event_Dnd_Data_Request { - char *type; /**< Type of data requested */ + void *handle; /**< Engine specific handle for responding to request */ + char *type; /**< Type of data requested */ }; /** * The Ewl_Event_Dnd_Data_Requested type */ -typedef struct Ewl_Event_Dnd_Data_Requested Ewl_Event_Dnd_Data_Requested; +typedef struct Ewl_Event_Dnd_Data_Request Ewl_Event_Dnd_Data_Request; /** * The Ewl_Dialog_Evenet type ------------------------------------------------------------------------- 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