aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTakamichi Horikawa <takamichiho@gmail.com>2018-04-14 15:19:28 +0900
committerTakamichi Horikawa <takamichiho@gmail.com>2018-04-14 15:19:28 +0900
commit79458302dbc26857b3f3b7c6050a3af009215a68 (patch)
tree52a54ea3aaa6f90bb76db7cb0a21680a9dde6c36
parent0ceb800711f00558f0da2485bf0f697dfdc42012 (diff)
gtk: remove deprecated gdk_keymap_get_default()
-rw-r--r--gtk/main.c3
1 files changed, 2 insertions, 1 deletions
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,