summaryrefslogtreecommitdiff
path: root/gtk/gtkimcontextsimple.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2017-08-26 10:55:35 -0400
committerCarlos Garnacho <carlosg@gnome.org>2017-09-19 18:39:03 +0200
commitb99c3d33ecc56d89d80e9609f30171a2dbc7f757 (patch)
tree5d598ca31eec8b04dddbe6799b2122db7a60398d /gtk/gtkimcontextsimple.c
parent67489349a5304edf0ca314b97b5b33bd7c6dcb2d (diff)
downloadgtk+-b99c3d33ecc56d89d80e9609f30171a2dbc7f757.tar.gz
im context simple: Use GdkEvent API
Diffstat (limited to 'gtk/gtkimcontextsimple.c')
-rw-r--r--gtk/gtkimcontextsimple.c2
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);