win: Amend previous commit about modifiers

The code was invalid, so making it valid now. Explicitely marking
the modifiers as unused, as mentionned in the documentation as
well.

See 9baa8752a9
This commit is contained in:
Jean-Philippe Andre 2017-07-17 16:36:19 +09:00
parent 9d1a8bb082
commit 9dddc075d4
1 changed files with 11 additions and 6 deletions

View File

@ -8073,21 +8073,26 @@ elm_win_resize_object_del(Eo *obj, Evas_Object *subobj)
EAPI Eina_Bool
elm_win_keygrab_set(Elm_Win *obj, const char *key,
Evas_Modifier_Mask modifiers, Evas_Modifier_Mask not_modifiers,
Evas_Modifier_Mask modifiers EINA_UNUSED,
Evas_Modifier_Mask not_modifiers EINA_UNUSED,
int priority, Elm_Win_Keygrab_Mode grab_mode)
{
// Note: Not converting modifiers as they are not used in the implementation
return efl_ui_win_keygrab_set(obj, key,
(Efl_Input_Modifier) modifiers,
(Efl_Input_Modifier) not_modifiers,
EFL_INPUT_MODIFIER_NONE,
EFL_INPUT_MODIFIER_NONE,
priority, grab_mode);
}
EAPI Eina_Bool
elm_win_keygrab_unset(Elm_Win *obj, const char *key, Evas_Modifier_Mask modifiers, Evas_Modifier_Mask not_modifiers)
elm_win_keygrab_unset(Elm_Win *obj, const char *key,
Evas_Modifier_Mask modifiers EINA_UNUSED,
Evas_Modifier_Mask not_modifiers EINA_UNUSED)
{
// Note: Not converting modifiers as they are not used in the implementation
return efl_ui_win_keygrab_unset(obj, key,
(Efl_Input_Modifier) modifiers,
(Efl_Input_Modifier) not_modifiers);
EFL_INPUT_MODIFIER_NONE,
EFL_INPUT_MODIFIER_NONE);
}
// deprecated