Fix a C99ism

svn path=/trunk/; revision=21398
This commit is contained in:
Matthias Clasen 2008-09-16 04:44:12 +00:00
parent f4555335a5
commit a05204154c
2 changed files with 10 additions and 1 deletions

View File

@ -1,3 +1,11 @@
2008-09-16 Matthias Clasen <mclasen@redhat.com>
Bug 552001 gtkimcontextsimple.c: variable is declared at middle of
block
* gtk/gtkimcontextsimple.c: Fix a C99ism, pointed out by Kazuki
Iwamoto.
2008-09-13 Tor Lillqvist <tml@novell.com>
* gtk/gtkmain.c: Don't use the deprectated

View File

@ -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;