mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-12 20:00:09 +00:00
Merge branch 'fix-im-reset' into 'master'
imcontextsimple: Fix a possible problem See merge request GNOME/gtk!3584
This commit is contained in:
commit
1f99723a9f
@ -1077,9 +1077,12 @@ gtk_im_context_simple_reset (GtkIMContext *context)
|
||||
|
||||
priv->compose_buffer[0] = 0;
|
||||
|
||||
if (priv->tentative_match->len > 0 || priv->in_hex_sequence)
|
||||
if (priv->tentative_match->len > 0 ||
|
||||
priv->in_hex_sequence ||
|
||||
priv->in_compose_sequence)
|
||||
{
|
||||
priv->in_hex_sequence = FALSE;
|
||||
priv->in_compose_sequence = FALSE;
|
||||
g_string_set_size (priv->tentative_match, 0);
|
||||
priv->tentative_match_len = 0;
|
||||
g_signal_emit_by_name (context_simple, "preedit-changed");
|
||||
|
Loading…
Reference in New Issue
Block a user