Commit ad3f7d96 authored by 8's avatar 8 Committed by Hidetoshi Tajima
Browse files

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.
parent 565074f9
......@@ -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
......
......@@ -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);
}
}
/*
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment