diff options
author | Matthias Clasen <mclasen@redhat.com> | 2017-08-26 10:55:35 -0400 |
---|---|---|
committer | Carlos Garnacho <carlosg@gnome.org> | 2017-09-19 18:39:03 +0200 |
commit | b99c3d33ecc56d89d80e9609f30171a2dbc7f757 (patch) | |
tree | 5d598ca31eec8b04dddbe6799b2122db7a60398d /gtk/gtkimcontextsimple.c | |
parent | 67489349a5304edf0ca314b97b5b33bd7c6dcb2d (diff) | |
download | gtk+-b99c3d33ecc56d89d80e9609f30171a2dbc7f757.tar.gz |
im context simple: Use GdkEvent API
Diffstat (limited to 'gtk/gtkimcontextsimple.c')
-rw-r--r-- | gtk/gtkimcontextsimple.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtkimcontextsimple.c b/gtk/gtkimcontextsimple.c index 04e5958a82..cfc7b69471 100644 --- a/gtk/gtkimcontextsimple.c +++ b/gtk/gtkimcontextsimple.c @@ -1054,7 +1054,7 @@ no_sequence_matches (GtkIMContextSimple *context_simple, for (i=0; i < n_compose - len - 1; i++) { GdkEvent *tmp_event = gdk_event_copy ((GdkEvent *)event); - tmp_event->key.keyval = priv->compose_buffer[len + i]; + gdk_event_set_keyval (tmp_event, priv->compose_buffer[len + i]); gtk_im_context_filter_keypress (context, (GdkEventKey *)tmp_event); gdk_event_free (tmp_event); |