diff options
author | Matthias Clasen <mclasen@redhat.com> | 2017-12-15 07:44:58 -0500 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2017-12-15 07:44:58 -0500 |
commit | e92c0e85ec28f4a7185706519acd0747fd36bedb (patch) | |
tree | 3fa7e913dd090ea339df1f8bc98389b1e6652091 /gtk/gtkimcontextsimple.c | |
parent | 1012bbeecf4cbbe819adad149c4b775d64f2a939 (diff) | |
download | gtk+-e92c0e85ec28f4a7185706519acd0747fd36bedb.tar.gz |
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.
Diffstat (limited to 'gtk/gtkimcontextsimple.c')
-rw-r--r-- | gtk/gtkimcontextsimple.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; |