summaryrefslogtreecommitdiff
path: root/gtk/gtktextview.c
diff options
context:
space:
mode:
author8 <tajima@eng.sun.com>2000-12-09 01:04:54 +0000
committerHidetoshi Tajima <tajima@src.gnome.org>2000-12-09 01:04:54 +0000
commitad3f7d9653f6af8579f37c93d3afd7001c28dc80 (patch)
tree87fcb3005d3a4409194d5806c9e63ef2d84ffa87 /gtk/gtktextview.c
parent565074f9a3eaaf3f88c71051624ee28836506ff1 (diff)
downloadgtk+-ad3f7d9653f6af8579f37c93d3afd7001c28dc80.tar.gz
make need_im_reset flag effective to avoid reset_ic operation being done
2000-12-08 <tajima@eng.sun.com> * gtk/gtktextview.c (gtk_text_view_reset_im_context): * gtk/gtkentry.c (gtk_entry_reset_im_context): make need_im_reset flag effective to avoid reset_ic operation being done repeatedly.
Diffstat (limited to 'gtk/gtktextview.c')
-rw-r--r--gtk/gtktextview.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/gtk/gtktextview.c b/gtk/gtktextview.c
index c17b3ab0a9..4bcd9bdabc 100644
--- a/gtk/gtktextview.c
+++ b/gtk/gtktextview.c
@@ -3860,9 +3860,10 @@ static void
gtk_text_view_reset_im_context (GtkTextView *text_view)
{
if (text_view->need_im_reset)
- text_view->need_im_reset = 0;
-
- gtk_im_context_reset (text_view->im_context);
+ {
+ text_view->need_im_reset = 0;
+ gtk_im_context_reset (text_view->im_context);
+ }
}
/*