summaryrefslogtreecommitdiff
path: root/gtk/gtkimmulticontext.c
diff options
context:
space:
mode:
authorJasper St. Pierre <jstpierre@mecheye.net>2011-03-16 19:04:20 -0400
committerJasper St. Pierre <jstpierre@mecheye.net>2011-03-16 20:09:14 -0400
commitff9eb56c6e2d1c98fff6de2c6d4a0d1836682302 (patch)
tree3af4a081df0753cc70451063762b916cec4e873d /gtk/gtkimmulticontext.c
parent6ecfddf2e245ecc8152bdf8d86ed5b4091f89fc6 (diff)
downloadgtk+-ff9eb56c6e2d1c98fff6de2c6d4a0d1836682302.tar.gz
Don't only use ch != 0 to check if a character is a control char.
https://bugzilla.gnome.org/show_bug.cgi?id=644976
Diffstat (limited to 'gtk/gtkimmulticontext.c')
-rw-r--r--gtk/gtkimmulticontext.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtkimmulticontext.c b/gtk/gtkimmulticontext.c
index f2454fcb4a..ea471a8aaf 100644
--- a/gtk/gtkimmulticontext.c
+++ b/gtk/gtkimmulticontext.c
@@ -355,7 +355,7 @@ gtk_im_multicontext_filter_keypress (GtkIMContext *context,
gunichar ch;
ch = gdk_keyval_to_unicode (event->keyval);
- if (ch != 0)
+ if (ch != 0 && !g_unichar_iscntrl (ch))
{
gint len;
gchar buf[10];