diff options
author | Takamichi Horikawa <takamichiho@gmail.com> | 2018-04-14 15:19:28 +0900 |
---|---|---|
committer | Takamichi Horikawa <takamichiho@gmail.com> | 2018-04-14 15:19:28 +0900 |
commit | 79458302dbc26857b3f3b7c6050a3af009215a68 (patch) | |
tree | 52a54ea3aaa6f90bb76db7cb0a21680a9dde6c36 | |
parent | 0ceb800711f00558f0da2485bf0f697dfdc42012 (diff) |
gtk: remove deprecated gdk_keymap_get_default()
-rw-r--r-- | gtk/main.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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, |