Enlightenment CVS committal Author : ningerso Project : e17 Module : libs/ewl
Dir : e17/libs/ewl/src/lib Modified Files: ewl_dnd.c ewl_dnd.h Log Message: Missed these files in a commit. Thanks for pointing this out sebastid. =================================================================== RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_dnd.c,v retrieving revision 1.14 retrieving revision 1.15 diff -u -3 -r1.14 -r1.15 --- ewl_dnd.c 10 Jun 2006 04:57:03 -0000 1.14 +++ ewl_dnd.c 6 Aug 2006 10:01:57 -0000 1.15 @@ -23,7 +23,7 @@ Ecore_Event_Handler *ewl_dnd_mouse_up_handler; Ecore_Event_Handler *ewl_dnd_mouse_move_handler; -char *ewl_dnd_drop_types[] = { "text/uri-list" }; +char *ewl_dnd_drop_types[] = { "text/uri-list", "UTF8_STRING", NULL }; static int ewl_dnd_event_mouse_up(void *data, int type, void *event); static int ewl_dnd_event_dnd_move(void *data, int type, void *event); @@ -186,6 +186,21 @@ ecore_x_dnd_begin(ewl_dnd_drag_win, NULL, 0); DLEAVE_FUNCTION(DLEVEL_STABLE); +} + +int +ewl_dnd_type_supported(char *type) +{ + char **check; + DENTER_FUNCTION(DLEVEL_STABLE); + DCHECK_PARAM_PTR_RET("type", type, FALSE); + + for (check = ewl_dnd_drop_types; *check; check++) { + if (!strcmp(type, *check)) + DRETURN_INT(TRUE, DLEVEL_STABLE); + } + + DRETURN_INT(FALSE, DLEVEL_STABLE); } /** =================================================================== RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_dnd.h,v retrieving revision 1.12 retrieving revision 1.13 diff -u -3 -r1.12 -r1.13 --- ewl_dnd.h 10 Jun 2006 04:57:03 -0000 1.12 +++ ewl_dnd.h 6 Aug 2006 10:01:57 -0000 1.13 @@ -18,6 +18,7 @@ void ewl_dnd_position_windows_set(Ewl_Widget *w); Ewl_Dnd_Types *ewl_dnd_types_for_widget_get(Ewl_Widget *widget); +int ewl_dnd_type_supported(char *type); void ewl_dnd_disable(void); void ewl_dnd_enable(void); ------------------------------------------------------------------------- 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