validategtk: Stop using deprecated keymap API

gstvalidategtk.c:184:7: error: ‘gdk_keymap_get_default’ is deprecated: Use 'gdk_keymap_get_for_display' instead [-Werror=deprecated-declarations]
       gdk_keymap_get_entries_for_keyval (gdk_keymap_get_default (),
       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
This commit is contained in:
Sebastian Dröge 2018-02-18 12:21:34 +02:00
parent 47415e50e1
commit 0b9218f23f

View file

@ -181,8 +181,8 @@ _create_keyboard_events (GstValidateAction * action,
GdkKeymapKey *kmaps; GdkKeymapKey *kmaps;
guint keyval = gdk_unicode_to_keyval (string[i]); guint keyval = gdk_unicode_to_keyval (string[i]);
gdk_keymap_get_entries_for_keyval (gdk_keymap_get_default (), gdk_keymap_get_entries_for_keyval (gdk_keymap_get_for_display
keyval, &kmaps, &n_keys); (gdk_display_get_default ()), keyval, &kmaps, &n_keys);
events = events =
g_list_append (events, _create_key_event (window, etype, keyval, g_list_append (events, _create_key_event (window, etype, keyval,