aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/ecore_imf
diff options
context:
space:
mode:
authorJihoon Kim <jihoon48.kim@samsung.com>2014-08-30 10:26:05 +0900
committerJihoon Kim <jihoon48.kim@samsung.com>2014-08-30 10:26:05 +0900
commit98e06b4f253b1310b15fb209b6b41495c9059844 (patch)
tree1e80264a8cfae9a7f83641960fe684ec7b257013 /src/lib/ecore_imf
parenteolian: APIs to check if an implement references get/set (diff)
downloadefl-98e06b4f253b1310b15fb209b6b41495c9059844.tar.gz
ecore_imf: fix to call function of immodule when the input method property is changed
Diffstat (limited to 'src/lib/ecore_imf')
-rw-r--r--src/lib/ecore_imf/ecore_imf_context.c16
1 files 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 841b2aae49..65154bc78d 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