summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2017-07-17 16:36:19 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2017-07-17 16:38:38 +0900
commit9dddc075d4a26c199477a23735fe81918e32dd39 (patch)
tree891052e6ac31896dfb5f27a799077c211dcfa679
parent9d1a8bb08246a11b5b8a7e35081d0664464ae820 (diff)
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 9baa8752a9170e68e9430474f26cc1e672677d8e
-rw-r--r--src/lib/elementary/efl_ui_win.c17
1 files changed, 11 insertions, 6 deletions
diff --git a/src/lib/elementary/efl_ui_win.c b/src/lib/elementary/efl_ui_win.c
index dd23d99061..c7cfa7f67d 100644
--- a/src/lib/elementary/efl_ui_win.c
+++ b/src/lib/elementary/efl_ui_win.c
@@ -8073,21 +8073,26 @@ elm_win_resize_object_del(Eo *obj, Evas_Object *subobj)
8073 8073
8074EAPI Eina_Bool 8074EAPI Eina_Bool
8075elm_win_keygrab_set(Elm_Win *obj, const char *key, 8075elm_win_keygrab_set(Elm_Win *obj, const char *key,
8076 Evas_Modifier_Mask modifiers, Evas_Modifier_Mask not_modifiers, 8076 Evas_Modifier_Mask modifiers EINA_UNUSED,
8077 Evas_Modifier_Mask not_modifiers EINA_UNUSED,
8077 int priority, Elm_Win_Keygrab_Mode grab_mode) 8078 int priority, Elm_Win_Keygrab_Mode grab_mode)
8078{ 8079{
8080 // Note: Not converting modifiers as they are not used in the implementation
8079 return efl_ui_win_keygrab_set(obj, key, 8081 return efl_ui_win_keygrab_set(obj, key,
8080 (Efl_Input_Modifier) modifiers, 8082 EFL_INPUT_MODIFIER_NONE,
8081 (Efl_Input_Modifier) not_modifiers, 8083 EFL_INPUT_MODIFIER_NONE,
8082 priority, grab_mode); 8084 priority, grab_mode);
8083} 8085}
8084 8086
8085EAPI Eina_Bool 8087EAPI Eina_Bool
8086elm_win_keygrab_unset(Elm_Win *obj, const char *key, Evas_Modifier_Mask modifiers, Evas_Modifier_Mask not_modifiers) 8088elm_win_keygrab_unset(Elm_Win *obj, const char *key,
8089 Evas_Modifier_Mask modifiers EINA_UNUSED,
8090 Evas_Modifier_Mask not_modifiers EINA_UNUSED)
8087{ 8091{
8092 // Note: Not converting modifiers as they are not used in the implementation
8088 return efl_ui_win_keygrab_unset(obj, key, 8093 return efl_ui_win_keygrab_unset(obj, key,
8089 (Efl_Input_Modifier) modifiers, 8094 EFL_INPUT_MODIFIER_NONE,
8090 (Efl_Input_Modifier) not_modifiers); 8095 EFL_INPUT_MODIFIER_NONE);
8091} 8096}
8092 8097
8093// deprecated 8098// deprecated