From 79458302dbc26857b3f3b7c6050a3af009215a68 Mon Sep 17 00:00:00 2001 From: Takamichi Horikawa Date: Sat, 14 Apr 2018 15:19:28 +0900 Subject: gtk: remove deprecated gdk_keymap_get_default() --- gtk/main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'gtk/main.c') diff --git a/gtk/main.c b/gtk/main.c index a058e80..4369860 100644 --- a/gtk/main.c +++ b/gtk/main.c @@ -418,7 +418,8 @@ static gboolean key_press_cb(GtkWidget *w, } } guint keyval; - gdk_keymap_translate_keyboard_state(gdk_keymap_get_default(), + gdk_keymap_translate_keyboard_state(gdk_keymap_get_for_display( + gtk_widget_get_display(w)), e->key.hardware_keycode, 0, e->key.group, -- cgit v1.2.3