[gtk+] imcontext: Fix typo on ctrl+shift+u hex sequences handling



commit 3bdc9d7b3a9cec491e30668b25061ff9d2d084e7
Author: Carlos Garnacho <carlosg gnome org>
Date:   Mon Oct 2 18:11:53 2017 +0200

    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).

 gtk/gtkimcontextsimple.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkimcontextsimple.c b/gtk/gtkimcontextsimple.c
index cfc7b69..06bdfb4 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 */


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]