diff options
author | Jihoon Kim <jihoon48.kim@samsung.com> | 2013-04-13 17:01:56 +0900 |
---|---|---|
committer | Jihoon Kim <jihoon48.kim@samsung.com> | 2013-04-13 17:01:56 +0900 |
commit | 58d7c5c1dcef38ab671b6066aa779e725b693022 (patch) | |
tree | 424cc444e34ec806edbc3759143fe3480c2741a5 /src/lib/ecore_imf/ecore_imf.c | |
parent | 373fb30096d821327326dfa0a1c4fb35c8f6d17a (diff) |
ecore_imf: Add ecore_imf_input_panel_hide() API
Diffstat (limited to 'src/lib/ecore_imf/ecore_imf.c')
-rw-r--r-- | src/lib/ecore_imf/ecore_imf.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/lib/ecore_imf/ecore_imf.c b/src/lib/ecore_imf/ecore_imf.c index 143acc4e83..0f5b75fd4b 100644 --- a/src/lib/ecore_imf/ecore_imf.c +++ b/src/lib/ecore_imf/ecore_imf.c | |||
@@ -16,6 +16,7 @@ EAPI int ECORE_IMF_EVENT_DELETE_SURROUNDING = 0; | |||
16 | 16 | ||
17 | int _ecore_imf_log_dom = -1; | 17 | int _ecore_imf_log_dom = -1; |
18 | static int _ecore_imf_init_count = 0; | 18 | static int _ecore_imf_init_count = 0; |
19 | extern Ecore_IMF_Context *show_req_ctx; | ||
19 | 20 | ||
20 | EAPI int | 21 | EAPI int |
21 | ecore_imf_init(void) | 22 | ecore_imf_init(void) |
@@ -52,3 +53,18 @@ ecore_imf_shutdown(void) | |||
52 | ecore_shutdown(); | 53 | ecore_shutdown(); |
53 | return _ecore_imf_init_count; | 54 | return _ecore_imf_init_count; |
54 | } | 55 | } |
56 | |||
57 | EAPI Eina_Bool | ||
58 | ecore_imf_input_panel_hide(void) | ||
59 | { | ||
60 | if (show_req_ctx) | ||
61 | { | ||
62 | if (ecore_imf_context_input_panel_state_get(show_req_ctx) != ECORE_IMF_INPUT_PANEL_STATE_HIDE) | ||
63 | { | ||
64 | ecore_imf_context_input_panel_hide(show_req_ctx); | ||
65 | return EINA_TRUE; | ||
66 | } | ||
67 | } | ||
68 | |||
69 | return EINA_FALSE; | ||
70 | } | ||