jihoon pushed a commit to branch master. http://git.enlightenment.org/core/efl.git/commit/?id=98e06b4f253b1310b15fb209b6b41495c9059844
commit 98e06b4f253b1310b15fb209b6b41495c9059844 Author: Jihoon Kim <jihoon48....@samsung.com> Date: Sat Aug 30 10:26:05 2014 +0900 ecore_imf: fix to call function of immodule when the input method property is changed --- src/lib/ecore_imf/ecore_imf_context.c | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/src/lib/ecore_imf/ecore_imf_context.c b/src/lib/ecore_imf/ecore_imf_context.c index 841b2aa..65154bc 100644 --- a/src/lib/ecore_imf/ecore_imf_context.c +++ b/src/lib/ecore_imf/ecore_imf_context.c @@ -408,10 +408,13 @@ ecore_imf_context_prediction_allow_set(Ecore_IMF_Context *ctx, Eina_Bool predict return; } - ctx->allow_prediction = prediction; + if (ctx->allow_prediction != prediction) + { + ctx->allow_prediction = prediction; - if (ctx->klass->prediction_allow_set) - ctx->klass->prediction_allow_set(ctx, prediction); + if (ctx->klass->prediction_allow_set) + ctx->klass->prediction_allow_set(ctx, prediction); + } } EAPI Eina_Bool @@ -437,9 +440,12 @@ ecore_imf_context_autocapital_type_set(Ecore_IMF_Context *ctx, Ecore_IMF_Autocap return; } - ctx->autocapital_type = autocapital_type; + if (ctx->autocapital_type != autocapital_type) + { + ctx->autocapital_type = autocapital_type; - if (ctx->klass->autocapital_type_set) ctx->klass->autocapital_type_set(ctx, autocapital_type); + if (ctx->klass->autocapital_type_set) ctx->klass->autocapital_type_set(ctx, autocapital_type); + } } EAPI Ecore_IMF_Autocapital_Type --