mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-11 21:20:09 +00:00
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:
parent
565074f9a3
commit
ad3f7d9653
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user