diff options
author | 8 <tajima@eng.sun.com> | 2000-12-09 01:04:54 +0000 |
---|---|---|
committer | Hidetoshi Tajima <tajima@src.gnome.org> | 2000-12-09 01:04:54 +0000 |
commit | ad3f7d9653f6af8579f37c93d3afd7001c28dc80 (patch) | |
tree | 87fcb3005d3a4409194d5806c9e63ef2d84ffa87 /gtk/gtktextview.c | |
parent | 565074f9a3eaaf3f88c71051624ee28836506ff1 (diff) | |
download | gtk+-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.c | 7 |
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); + } } /* |