summaryrefslogtreecommitdiff
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
parent4785353baf0ff956e05a451bbea5b0035a5e7a0f (diff)
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
408 return; 408 return;
409 } 409 }
410 410
411 ctx->allow_prediction = prediction; 411 if (ctx->allow_prediction != prediction)
412 {
413 ctx->allow_prediction = prediction;
412 414
413 if (ctx->klass->prediction_allow_set) 415 if (ctx->klass->prediction_allow_set)
414 ctx->klass->prediction_allow_set(ctx, prediction); 416 ctx->klass->prediction_allow_set(ctx, prediction);
417 }
415} 418}
416 419
417EAPI Eina_Bool 420EAPI Eina_Bool
@@ -437,9 +440,12 @@ ecore_imf_context_autocapital_type_set(Ecore_IMF_Context *ctx, Ecore_IMF_Autocap
437 return; 440 return;
438 } 441 }
439 442
440 ctx->autocapital_type = autocapital_type; 443 if (ctx->autocapital_type != autocapital_type)
444 {
445 ctx->autocapital_type = autocapital_type;
441 446
442 if (ctx->klass->autocapital_type_set) ctx->klass->autocapital_type_set(ctx, autocapital_type); 447 if (ctx->klass->autocapital_type_set) ctx->klass->autocapital_type_set(ctx, autocapital_type);
448 }
443} 449}
444 450
445EAPI Ecore_IMF_Autocapital_Type 451EAPI Ecore_IMF_Autocapital_Type