summaryrefslogtreecommitdiff
path: root/gtk/gtkimcontextsimple.c
diff options
context:
space:
mode:
authorMatthias Clasen <matthiasc@src.gnome.org>2008-09-16 04:44:12 +0000
committerMatthias Clasen <matthiasc@src.gnome.org>2008-09-16 04:44:12 +0000
commita05204154c2f603f4a8a056466bd267274c96ba9 (patch)
tree5d450aed0be5b2d7483deb8882cc332bb233ff0d /gtk/gtkimcontextsimple.c
parentf4555335a5f24137b8fc589a6fcc49abd43af64d (diff)
downloadgtk+-a05204154c2f603f4a8a056466bd267274c96ba9.tar.gz
Fix a C99ism
svn path=/trunk/; revision=21398
Diffstat (limited to 'gtk/gtkimcontextsimple.c')
-rw-r--r--gtk/gtkimcontextsimple.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gtk/gtkimcontextsimple.c b/gtk/gtkimcontextsimple.c
index bb49d21db7..459bdd7ea7 100644
--- a/gtk/gtkimcontextsimple.c
+++ b/gtk/gtkimcontextsimple.c
@@ -485,10 +485,11 @@ check_algorithmically (GtkIMContextSimple *context_simple,
*/
if (check_normalize_nfc (combination_buffer, n_compose))
{
+ gunichar value;
combination_utf8 = g_ucs4_to_utf8 (combination_buffer, -1, NULL, NULL, NULL);
nfc = g_utf8_normalize (combination_utf8, -1, G_NORMALIZE_NFC);
- gunichar value = g_utf8_get_char (nfc);
+ value = g_utf8_get_char (nfc);
gtk_im_context_simple_commit_char (GTK_IM_CONTEXT (context_simple), value);
context_simple->compose_buffer[0] = 0;