diff options
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 | } | ||