forked from enlightenment/efl
ecore-wl2: Add API to support deleting auxiliary window hints
@feature Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
parent
8b311aa27f
commit
b678382b8a
|
@ -1133,6 +1133,17 @@ EAPI void ecore_wl2_window_aux_hint_add(Ecore_Wl2_Window *window, int id, const
|
|||
*/
|
||||
EAPI void ecore_wl2_window_aux_hint_change(Ecore_Wl2_Window *window, int id, const char *val);
|
||||
|
||||
/**
|
||||
* Delete an auxiliary hint on a given window
|
||||
*
|
||||
* @param window
|
||||
* @param id
|
||||
*
|
||||
* @ingroup Ecore_Wl2_Window_Group
|
||||
* @since 1.20
|
||||
*/
|
||||
EAPI void ecore_wl2_window_aux_hint_del(Ecore_Wl2_Window *window, int id);
|
||||
|
||||
/**
|
||||
* @defgroup Ecore_Wl2_Input_Group Wayland Library Input Functions
|
||||
* @ingroup Ecore_Wl2_Group
|
||||
|
|
|
@ -1418,3 +1418,28 @@ ecore_wl2_window_aux_hint_change(Ecore_Wl2_Window *window, int id, const char *v
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
EAPI void
|
||||
ecore_wl2_window_aux_hint_del(Ecore_Wl2_Window *window, int id)
|
||||
{
|
||||
Eina_Inlist *tmp;
|
||||
Ecore_Wl2_Aux_Hint *ehint;
|
||||
|
||||
EINA_SAFETY_ON_NULL_RETURN(window);
|
||||
|
||||
EINA_INLIST_FOREACH_SAFE(window->supported_aux_hints, tmp, ehint)
|
||||
{
|
||||
if (ehint->id == id)
|
||||
{
|
||||
window->supported_aux_hints =
|
||||
eina_inlist_remove(window->supported_aux_hints,
|
||||
EINA_INLIST_GET(ehint));
|
||||
|
||||
eina_stringshare_del(ehint->hint);
|
||||
eina_stringshare_del(ehint->val);
|
||||
free(ehint);
|
||||
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue