diff options
author | Jihoon Kim <jihoon48.kim@samsung.com> | 2013-03-27 10:15:42 +0900 |
---|---|---|
committer | Jihoon Kim <jihoon48.kim@samsung.com> | 2013-03-27 10:15:42 +0900 |
commit | 6265365ddc5dffa2fd372e229571f1ff4bce7668 (patch) | |
tree | 8b2c59a8863e5263a6242570db8c62113673953b /src/lib/ecore_imf/ecore_imf_context.c | |
parent | 19561c611250352df5bc571e0ec2fa88972e4bdd (diff) |
ecore_imf: Add ecore_imf_context_input_panel_layout_variation_set/get API
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 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 | ||
823 | EAPI void | 823 | EAPI void |
824 | ecore_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 | |||
836 | EAPI int | ||
837 | ecore_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 | |||
849 | EAPI void | ||
824 | ecore_imf_context_input_panel_language_set(Ecore_IMF_Context *ctx, Ecore_IMF_Input_Panel_Lang lang) | 850 | ecore_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)) |