summaryrefslogtreecommitdiff
path: root/gtk/gtkimcontextsimple.c
diff options
context:
space:
mode:
authorSimos Xenitellis <simos@src.gnome.org>2008-10-10 08:26:01 +0000
committerSimos Xenitellis <simos@src.gnome.org>2008-10-10 08:26:01 +0000
commit22e548b122e8eb5816db16accca0ae1839cf8b60 (patch)
tree7de8f11375914b1682364e5df54c4dd5533889c2 /gtk/gtkimcontextsimple.c
parenteaacd364b6197fcd8a79cdf57876d551575f9096 (diff)
downloadgdk-pixbuf-22e548b122e8eb5816db16accca0ae1839cf8b60.tar.gz
Fixed Bug 555000, check_algorithmically() applies to deadkey keysyms only.
svn path=/branches/gtk-2-14/; revision=21624
Diffstat (limited to 'gtk/gtkimcontextsimple.c')
-rw-r--r--gtk/gtkimcontextsimple.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/gtk/gtkimcontextsimple.c b/gtk/gtkimcontextsimple.c
index 967d30c48..66a1da15c 100644
--- a/gtk/gtkimcontextsimple.c
+++ b/gtk/gtkimcontextsimple.c
@@ -410,16 +410,12 @@ check_normalize_nfc (gunichar* combination_buffer, gint n_compose)
/* Checks if a keysym is a dead key. Dead key keysym values are defined in
* ../gdk/gdkkeysyms.h and the first is GDK_dead_grave. As X.Org is updated,
* more dead keys are added and we need to update the upper limit.
- * Also checks if the keysym belongs to the non-spacing mark Unicode category,
- * by invoking gdk_keyval_to_unicode(). For keysyms like 0x1000000 + 0x0301,
- * it converts them to 0x301, which makes g_unichar_type() report them as
- * non-spacing mark. Thus, we check that the value is less then 0x1000000.
- * check_algorithmically() does not handle keysyms > 0x1000000.
+ * Currently, the upper limit is GDK_dead_dasia+1. The +1 has to do with
+ * a temporary issue in the X.Org header files.
+ * In future versions it will be just the keysym (no +1).
*/
#define IS_DEAD_KEY(k) \
- (((k) >= GDK_dead_grave && (k) <= (GDK_dead_dasia+1)) || \
- ((g_unichar_type (gdk_keyval_to_unicode (k)) == G_UNICODE_NON_SPACING_MARK) && \
- ((k) < 0x1000000)))
+ ((k) >= GDK_dead_grave && (k) <= (GDK_dead_dasia+1))
static gboolean
check_algorithmically (GtkIMContextSimple *context_simple,