summaryrefslogtreecommitdiff
path: root/src/lib/ecore_imf/ecore_imf_context.c
diff options
context:
space:
mode:
authorJihoon Kim <jihoon48.kim@samsung.com>2013-03-27 10:15:42 +0900
committerJihoon Kim <jihoon48.kim@samsung.com>2013-03-27 10:15:42 +0900
commit6265365ddc5dffa2fd372e229571f1ff4bce7668 (patch)
tree8b2c59a8863e5263a6242570db8c62113673953b /src/lib/ecore_imf/ecore_imf_context.c
parent19561c611250352df5bc571e0ec2fa88972e4bdd (diff)
ecore_imf: Add ecore_imf_context_input_panel_layout_variation_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 8f6efa623a..41a84b2cee 100644
--- a/src/lib/ecore_imf/ecore_imf_context.c
+++ b/src/lib/ecore_imf/ecore_imf_context.c
@@ -821,6 +821,32 @@ ecore_imf_context_input_panel_layout_get(Ecore_IMF_Context *ctx)
821} 821}
822 822
823EAPI void 823EAPI void
824ecore_imf_context_input_panel_layout_variation_set(Ecore_IMF_Context *ctx, int variation)
825{
826 if (!ECORE_MAGIC_CHECK(ctx, ECORE_MAGIC_CONTEXT))
827 {
828 ECORE_MAGIC_FAIL(ctx, ECORE_MAGIC_CONTEXT,
829 "ecore_imf_context_input_panel_layout_variation_set");
830 return;
831 }
832
833 ctx->input_panel_layout_variation = variation;
834}
835
836EAPI int
837ecore_imf_context_input_panel_layout_variation_get(Ecore_IMF_Context *ctx)
838{
839 if (!ECORE_MAGIC_CHECK(ctx, ECORE_MAGIC_CONTEXT))
840 {
841 ECORE_MAGIC_FAIL(ctx, ECORE_MAGIC_CONTEXT,
842 "ecore_imf_context_input_panel_layout_variation_get");
843 return 0;
844 }
845
846 return ctx->input_panel_layout_variation;
847}
848
849EAPI void
824ecore_imf_context_input_panel_language_set(Ecore_IMF_Context *ctx, Ecore_IMF_Input_Panel_Lang lang) 850ecore_imf_context_input_panel_language_set(Ecore_IMF_Context *ctx, Ecore_IMF_Input_Panel_Lang lang)
825{ 851{
826 if (!ECORE_MAGIC_CHECK(ctx, ECORE_MAGIC_CONTEXT)) 852 if (!ECORE_MAGIC_CHECK(ctx, ECORE_MAGIC_CONTEXT))