From e92c0e85ec28f4a7185706519acd0747fd36bedb Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Fri, 15 Dec 2017 07:44:58 -0500 Subject: Replace gdk_keymap_get_for_display by gdk_display_get_keymap Replace all uses of the old function by the new one. No functional change. --- gtk/gtkimcontextsimple.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gtk/gtkimcontextsimple.c') diff --git a/gtk/gtkimcontextsimple.c b/gtk/gtkimcontextsimple.c index e402ea67ee..036eca9d09 100644 --- a/gtk/gtkimcontextsimple.c +++ b/gtk/gtkimcontextsimple.c @@ -1096,7 +1096,7 @@ static guint canonical_hex_keyval (GdkEventKey *event) { GdkWindow *window = gdk_event_get_window ((GdkEvent *) event); - GdkKeymap *keymap = gdk_keymap_get_for_display (gdk_window_get_display (window)); + GdkKeymap *keymap = gdk_display_get_keymap (gdk_window_get_display (window)); guint keyval, event_keyval; guint *keyvals = NULL; gint n_vals = 0; @@ -1157,7 +1157,7 @@ gtk_im_context_simple_filter_keypress (GtkIMContext *context, GtkIMContextSimplePrivate *priv = context_simple->priv; GdkWindow *window = gdk_event_get_window ((GdkEvent *) event); GdkDisplay *display = gdk_window_get_display (window); - GdkKeymap *keymap = gdk_keymap_get_for_display (display); + GdkKeymap *keymap = gdk_display_get_keymap (display); GSList *tmp_list; int n_compose = 0; GdkModifierType hex_mod_mask; -- cgit v1.2.1