forked from enlightenment/efl
ecore-wl2: Add API function to end a dnd drag operation
Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
parent
9fdd4758fb
commit
d1cc93f046
|
@ -490,6 +490,9 @@ EAPI void ecore_wl2_dnd_drag_start(Ecore_Wl2_Input *input, Ecore_Wl2_Window *win
|
||||||
/* TODO: doxy */
|
/* TODO: doxy */
|
||||||
EAPI Eina_Bool ecore_wl2_dnd_drag_get(Ecore_Wl2_Input *input, const char *type);
|
EAPI Eina_Bool ecore_wl2_dnd_drag_get(Ecore_Wl2_Input *input, const char *type);
|
||||||
|
|
||||||
|
/* TODO: doxy */
|
||||||
|
EAPI void ecore_wl2_dnd_drag_end(Ecore_Wl2_Input *input);
|
||||||
|
|
||||||
/* # ifdef __cplusplus */
|
/* # ifdef __cplusplus */
|
||||||
/* } */
|
/* } */
|
||||||
/* # endif */
|
/* # endif */
|
||||||
|
|
|
@ -287,3 +287,24 @@ ecore_wl2_dnd_drag_get(Ecore_Wl2_Input *input, const char *type)
|
||||||
|
|
||||||
return EINA_TRUE;
|
return EINA_TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
EAPI void
|
||||||
|
ecore_wl2_dnd_drag_end(Ecore_Wl2_Input *input)
|
||||||
|
{
|
||||||
|
EINA_SAFETY_ON_NULL_RETURN(input);
|
||||||
|
|
||||||
|
if (input->data.types.data)
|
||||||
|
{
|
||||||
|
char **t;
|
||||||
|
|
||||||
|
wl_array_for_each(t, &input->data.types)
|
||||||
|
free(*t);
|
||||||
|
wl_array_release(&input->data.types);
|
||||||
|
wl_array_init(&input->data.types);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (input->data.source) wl_data_source_destroy(input->data.source);
|
||||||
|
input->data.source = NULL;
|
||||||
|
|
||||||
|
/* TODO: Raise dnd end event */
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue