diff options
Diffstat (limited to 'src/lib/ecore_imf/ecore_imf_context.c')
-rw-r--r-- | src/lib/ecore_imf/ecore_imf_context.c | 26 |
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 | ||
1210 | EAPI void | ||
1211 | ecore_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 | |||
1223 | EAPI Eina_Bool | ||
1224 | ecore_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 | |||