mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-31 11:32:38 +00:00
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:
parent
47415e50e1
commit
0b9218f23f
1 changed files with 2 additions and 2 deletions
|
@ -181,8 +181,8 @@ _create_keyboard_events (GstValidateAction * action,
|
|||
GdkKeymapKey *kmaps;
|
||||
guint keyval = gdk_unicode_to_keyval (string[i]);
|
||||
|
||||
gdk_keymap_get_entries_for_keyval (gdk_keymap_get_default (),
|
||||
keyval, &kmaps, &n_keys);
|
||||
gdk_keymap_get_entries_for_keyval (gdk_keymap_get_for_display
|
||||
(gdk_display_get_default ()), keyval, &kmaps, &n_keys);
|
||||
|
||||
events =
|
||||
g_list_append (events, _create_key_event (window, etype, keyval,
|
||||
|
|
Loading…
Reference in a new issue