diff options
author | Takao Fujiwara <tfujiwar@redhat.com> | 2015-09-03 17:43:52 +0900 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2015-10-08 22:35:52 -0400 |
commit | 4535d09beade268cea1f2bbbd3bf8a207ea2cf58 (patch) | |
tree | 35b7caf703f7afb2a5d55ea547b73c9d42ae5040 /gtk/gtkimcontextsimple.c | |
parent | 48a2477f2ddefb793e6845b14a84e715405f0c6e (diff) | |
download | gtk+-4535d09beade268cea1f2bbbd3bf8a207ea2cf58.tar.gz |
GtkIMContextSimple: Change guint to guint16 in gtkimcontextsimple.c
GtkComposeTable and GtkComposeTableCompact use guint16 for the data.
https://bugzilla.gnome.org/show_bug.cgi?id=721120
Diffstat (limited to 'gtk/gtkimcontextsimple.c')
-rw-r--r-- | gtk/gtkimcontextsimple.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gtk/gtkimcontextsimple.c b/gtk/gtkimcontextsimple.c index d5d394b744..a89146aa8c 100644 --- a/gtk/gtkimcontextsimple.c +++ b/gtk/gtkimcontextsimple.c @@ -42,7 +42,7 @@ struct _GtkIMContextSimplePrivate { GSList *tables; - guint compose_buffer[GTK_MAX_COMPOSE_LEN + 1]; + guint16 compose_buffer[GTK_MAX_COMPOSE_LEN + 1]; gunichar tentative_match; gint tentative_match_len; @@ -163,7 +163,7 @@ gtk_im_context_simple_commit_char (GtkIMContext *context, static int compare_seq_index (const void *key, const void *value) { - const guint *keysyms = key; + const guint16 *keysyms = key; const guint16 *seq = value; if (keysyms[0] < seq[0]) @@ -178,7 +178,7 @@ static int compare_seq (const void *key, const void *value) { int i = 0; - const guint *keysyms = key; + const guint16 *keysyms = key; const guint16 *seq = value; while (keysyms[i]) @@ -394,7 +394,7 @@ check_quartz_special_cases (GtkIMContextSimple *context_simple, gboolean gtk_check_compact_table (const GtkComposeTableCompact *table, - guint *compose_buffer, + guint16 *compose_buffer, gint n_compose, gboolean *compose_finish, gboolean *compose_match, @@ -567,7 +567,7 @@ check_normalize_nfc (gunichar* combination_buffer, gint n_compose) } gboolean -gtk_check_algorithmically (const guint *compose_buffer, +gtk_check_algorithmically (const guint16 *compose_buffer, gint n_compose, gunichar *output_char) |