ecore-wl2: Add API function to clear a dnd selection

Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
Chris Michael 2015-09-29 12:18:49 -04:00
parent 7a762d87dc
commit 454d91c005
2 changed files with 15 additions and 0 deletions

View File

@ -502,6 +502,9 @@ EAPI Eina_Bool ecore_wl2_dnd_selection_set(Ecore_Wl2_Input *input, const char **
/* TODO: doxy */
EAPI Eina_Bool ecore_wl2_dnd_selection_get(Ecore_Wl2_Input *input, const char *type);
/* TODO: doxy */
EAPI Eina_Bool ecore_wl2_dnd_selection_clear(Ecore_Wl2_Input *input);
/* # ifdef __cplusplus */
/* } */
/* # endif */

View File

@ -384,3 +384,15 @@ ecore_wl2_dnd_selection_get(Ecore_Wl2_Input *input, const char *type)
return EINA_TRUE;
}
EAPI Eina_Bool
ecore_wl2_dnd_selection_clear(Ecore_Wl2_Input *input)
{
EINA_SAFETY_ON_NULL_RETURN_VAL(input, EINA_FALSE);
EINA_SAFETY_ON_NULL_RETURN_VAL(input->data.device, EINA_FALSE);
wl_data_device_set_selection(input->data.device,
NULL, input->display->serial);
return EINA_TRUE;
}