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 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 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
2006-03-03 Michael Natterer <mitch@imendio.com>
Applied modified patch from maemo-gtk which makes separators more
len = g_unichar_to_utf8 (ch, buf);
buf[len] = '\0';
len = g_unichar_to_utf8 (ch, buf);
buf[len] = '\0';
+ 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;
context_simple->in_hex_sequence = FALSE;
- context_simple->tentative_match = 0;
- context_simple->tentative_match_len = 0;
- g_signal_emit_by_name (context_simple, "preedit_changed");
g_signal_emit_by_name (context, "commit", &buf);
}
g_signal_emit_by_name (context, "commit", &buf);
}
context_simple->compose_buffer[0] = 0;
context_simple->compose_buffer[0] = 0;
+ 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;
context_simple->in_hex_sequence = FALSE;
- context_simple->tentative_match = 0;
- context_simple->tentative_match_len = 0;
-
- g_signal_emit_by_name (context_simple, "preedit_changed");