summaryrefslogtreecommitdiff
path: root/src/lib/ecore_imf/ecore_imf_context.c
diff options
context:
space:
mode:
authorJihoon Kim <jihoon48.kim@samsung.com>2013-08-13 15:27:29 +0900
committerJihoon Kim <jihoon48.kim@samsung.com>2013-08-13 15:27:29 +0900
commitfe05d358eae261fedb4c9af9b532a9df2df15e6a (patch)
tree9d8a2c53911d06c63818ab52a7e361b3e3d75855 /src/lib/ecore_imf/ecore_imf_context.c
parent3e5bd813d3978558c5e164c7819b18f51e810ec2 (diff)
Add ecore_imf_context_input_panel_on_demand_set/get API
Diffstat (limited to '')
-rw-r--r--src/lib/ecore_imf/ecore_imf_context.c26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/lib/ecore_imf/ecore_imf_context.c b/src/lib/ecore_imf/ecore_imf_context.c
index 272a04be66..6b243d6447 100644
--- a/src/lib/ecore_imf/ecore_imf_context.c
+++ b/src/lib/ecore_imf/ecore_imf_context.c
@@ -1207,3 +1207,29 @@ ecore_imf_context_candidate_panel_geometry_get(Ecore_IMF_Context *ctx, int *x, i
1207 ctx->klass->candidate_panel_geometry_get(ctx, x, y, w, h); 1207 ctx->klass->candidate_panel_geometry_get(ctx, x, y, w, h);
1208} 1208}
1209 1209
1210EAPI void
1211ecore_imf_context_input_panel_show_on_demand_set(Ecore_IMF_Context *ctx, Eina_Bool ondemand)
1212{
1213 if (!ECORE_MAGIC_CHECK(ctx, ECORE_MAGIC_CONTEXT))
1214 {
1215 ECORE_MAGIC_FAIL(ctx, ECORE_MAGIC_CONTEXT,
1216 "ecore_imf_context_input_panel_show_on_demand_set");
1217 return;
1218 }
1219
1220 ctx->input_panel_show_on_demand = ondemand;
1221}
1222
1223EAPI Eina_Bool
1224ecore_imf_context_input_panel_show_on_demand_get(Ecore_IMF_Context *ctx)
1225{
1226 if (!ECORE_MAGIC_CHECK(ctx, ECORE_MAGIC_CONTEXT))
1227 {
1228 ECORE_MAGIC_FAIL(ctx, ECORE_MAGIC_CONTEXT,
1229 "ecore_imf_context_input_panel_show_on_demand_get");
1230 return EINA_FALSE;
1231 }
1232
1233 return ctx->input_panel_show_on_demand;
1234}
1235