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.
This commit is contained in:
8 2000-12-09 01:04:54 +00:00 committed by Hidetoshi Tajima
parent 565074f9a3
commit ad3f7d9653
2 changed files with 8 additions and 6 deletions

View File

@ -1866,9 +1866,10 @@ static void
gtk_entry_reset_im_context (GtkEntry *entry)
{
if (entry->need_im_reset)
entry->need_im_reset = 0;
gtk_im_context_reset (entry->im_context);
{
entry->need_im_reset = 0;
gtk_im_context_reset (entry->im_context);
}
}
static gint

View File

@ -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);
}
}
/*