Commit 87ff791d authored by Tor Lillqvist's avatar Tor Lillqvist Committed by Tor Lillqvist
Browse files

Avoid emitting superfluous preedit_changed signals. Thanks to Matthias.

2006-03-03  Tor Lillqvist  <tml@novell.com>

	* gtk/gtkimcontextsimple.c (gtk_im_context_simple_commit_char)
	(gtk_im_context_simple_reset): Avoid emitting superfluous
	preedit_changed signals. Thanks to Matthias. (#319407)
parent 43cb6010
2006-03-03 Tor Lillqvist <tml@novell.com>
* gtk/gtkimcontextsimple.c (gtk_im_context_simple_commit_char)
(gtk_im_context_simple_reset): Avoid emitting superfluous
preedit_changed signals. Thanks to Matthias. (#319407)
2006-03-03 Michael Natterer <mitch@imendio.com>
Applied modified patch from maemo-gtk which makes separators more
......
2006-03-03 Tor Lillqvist <tml@novell.com>
* gtk/gtkimcontextsimple.c (gtk_im_context_simple_commit_char)
(gtk_im_context_simple_reset): Avoid emitting superfluous
preedit_changed signals. Thanks to Matthias. (#319407)
2006-03-03 Michael Natterer <mitch@imendio.com>
Applied modified patch from maemo-gtk which makes separators more
......
......@@ -1032,10 +1032,13 @@ gtk_im_context_simple_commit_char (GtkIMContext *context,
len = g_unichar_to_utf8 (ch, buf);
buf[len] = '\0';
context_simple->in_hex_sequence = FALSE;
if (context_simple->tentative_match || context_simple->in_hex_sequence)
{
context_simple->tentative_match = 0;
context_simple->tentative_match_len = 0;
g_signal_emit_by_name (context_simple, "preedit_changed");
}
context_simple->in_hex_sequence = FALSE;
g_signal_emit_by_name (context, "commit", &buf);
}
......@@ -1519,11 +1522,13 @@ gtk_im_context_simple_reset (GtkIMContext *context)
context_simple->compose_buffer[0] = 0;
context_simple->in_hex_sequence = FALSE;
if (context_simple->tentative_match || context_simple->in_hex_sequence)
{
context_simple->tentative_match = 0;
context_simple->tentative_match_len = 0;
g_signal_emit_by_name (context_simple, "preedit_changed");
}
context_simple->in_hex_sequence = FALSE;
}
static void
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment