summaryrefslogtreecommitdiff
path: root/gtk/gtkimcontextsimple.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2005-12-06 21:21:44 +0000
committerMatthias Clasen <matthiasc@src.gnome.org>2005-12-06 21:21:44 +0000
commit6f72d3a8c7944af5230a57b6fe490fc4fe0b51ef (patch)
treedcc96ebcb7964f85b8415f2a587853a239b3c956 /gtk/gtkimcontextsimple.c
parent4174446a6ddc36a1256be14ed6b337b96b34f968 (diff)
downloadgtk+-6f72d3a8c7944af5230a57b6fe490fc4fe0b51ef.tar.gz
Don't commit from reset, it upstets GtkTextView.
2005-12-06 Matthias Clasen <mclasen@redhat.com> * gtk/gtkimcontextsimple.c (gtk_im_context_simple_reset): Don't commit from reset, it upstets GtkTextView. * gtk/gtktextview.c (gtk_text_view_check_cursor_blink): Be more careful when turning blinking on and off. (gtk_text_view_focus_out_event): Make the cursor really invisible when the focus goes away. (#323087, Sadrul Habib Chowdhury) (cursor_blinks): Check the gtk-cursor-blink setting first.
Diffstat (limited to 'gtk/gtkimcontextsimple.c')
-rw-r--r--gtk/gtkimcontextsimple.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/gtk/gtkimcontextsimple.c b/gtk/gtkimcontextsimple.c
index 0bea1c646f..2433af793d 100644
--- a/gtk/gtkimcontextsimple.c
+++ b/gtk/gtkimcontextsimple.c
@@ -1519,11 +1519,10 @@ gtk_im_context_simple_reset (GtkIMContext *context)
context_simple->compose_buffer[0] = 0;
- if (context_simple->tentative_match)
- gtk_im_context_simple_commit_char (context, context_simple->tentative_match);
-
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");
}