ecore-wl2: Add API function to determine if an input has a selection

owner

Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
Chris Michael 2015-09-29 11:57:35 -04:00
parent d1cc93f046
commit 4559aa15a4
2 changed files with 11 additions and 0 deletions

View File

@ -493,6 +493,9 @@ 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);
/* TODO: doxy */
EAPI Eina_Bool ecore_wl2_dnd_selection_owner_has(Ecore_Wl2_Input *input);
/* # ifdef __cplusplus */
/* } */
/* # endif */

View File

@ -308,3 +308,11 @@ ecore_wl2_dnd_drag_end(Ecore_Wl2_Input *input)
/* TODO: Raise dnd end event */
}
EAPI Eina_Bool
ecore_wl2_dnd_selection_owner_has(Ecore_Wl2_Input *input)
{
EINA_SAFETY_ON_NULL_RETURN_VAL(input, EINA_FALSE);
return (input->selection.source != NULL);
}