[gtk+/gtk-3-6] Avoid infinite recursion in the ime input module
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gtk-3-6] Avoid infinite recursion in the ime input module
- Date: Mon, 19 Nov 2012 14:30:50 +0000 (UTC)
commit bb4a34e3c5e1908cc4464184424f5df2497510fc
Author: Matthias Clasen <mclasen redhat com>
Date: Mon Nov 19 09:29:51 2012 -0500
Avoid infinite recursion in the ime input module
modules/input/gtkimcontextime.c | 11 +++++++----
1 files changed, 7 insertions(+), 4 deletions(-)
---
diff --git a/modules/input/gtkimcontextime.c b/modules/input/gtkimcontextime.c
index 009af3f..912415a 100644
--- a/modules/input/gtkimcontextime.c
+++ b/modules/input/gtkimcontextime.c
@@ -354,11 +354,14 @@ gtk_im_context_ime_reset (GtkIMContext *context)
if (!himc)
return;
- if (context_ime->preediting && ImmGetOpenStatus (himc))
- ImmNotifyIME (himc, NI_COMPOSITIONSTR, CPS_CANCEL, 0);
+ if (context_ime->preediting)
+ {
+ if (ImmGetOpenStatus (himc))
+ ImmNotifyIME (himc, NI_COMPOSITIONSTR, CPS_CANCEL, 0);
- context_ime->preediting = FALSE;
- g_signal_emit_by_name (context, "preedit-changed");
+ context_ime->preediting = FALSE;
+ g_signal_emit_by_name (context, "preedit-changed");
+ }
ImmReleaseContext (hwnd, himc);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]