summaryrefslogtreecommitdiff
path: root/gtk/gtkimcontextsimple.c
diff options
context:
space:
mode:
authorCarlos Garnacho <carlosg@gnome.org>2017-10-02 18:11:53 +0200
committerCarlos Garnacho <carlosg@gnome.org>2017-10-02 18:13:57 +0200
commit3bdc9d7b3a9cec491e30668b25061ff9d2d084e7 (patch)
tree8958bfb496269c35eef379e7faac969b32e281f9 /gtk/gtkimcontextsimple.c
parent604da889ea077d4d23327340713be32fba4261d0 (diff)
downloadgtk+-3bdc9d7b3a9cec491e30668b25061ff9d2d084e7.tar.gz
imcontext: Fix typo on ctrl+shift+u hex sequences handling
This condition was meant to exit when the event has no keyval (eg. fed a non-keyboard event somehow).
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 cfc7b69471..06bdfb4160 100644
--- a/gtk/gtkimcontextsimple.c
+++ b/gtk/gtkimcontextsimple.c
@@ -1102,7 +1102,7 @@ canonical_hex_keyval (GdkEventKey *event)
gint n_vals = 0;
gint i;
- if (gdk_event_get_keyval ((GdkEvent *) event, &event_keyval))
+ if (!gdk_event_get_keyval ((GdkEvent *) event, &event_keyval))
return 0;
/* See if the keyval is already a hex digit */