summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/modules/ecore_imf/ibus/ibus_imcontext.c10
-rw-r--r--src/modules/ecore_imf/ibus/ibus_imcontext.h1
-rw-r--r--src/modules/ecore_imf/ibus/ibus_module.c1
3 files changed, 12 insertions, 0 deletions
diff --git a/src/modules/ecore_imf/ibus/ibus_imcontext.c b/src/modules/ecore_imf/ibus/ibus_imcontext.c
index 48d8a710b8..caa5fd83c5 100644
--- a/src/modules/ecore_imf/ibus/ibus_imcontext.c
+++ b/src/modules/ecore_imf/ibus/ibus_imcontext.c
@@ -304,6 +304,16 @@ ecore_imf_context_ibus_new(void)
304} 304}
305 305
306void 306void
307ecore_imf_context_ibus_shutdown(void)
308{
309 if (_bus)
310 {
311 g_object_unref(_bus);
312 _bus = NULL;
313 }
314}
315
316void
307ecore_imf_context_ibus_add(Ecore_IMF_Context *ctx) 317ecore_imf_context_ibus_add(Ecore_IMF_Context *ctx)
308{ 318{
309 EINA_LOG_DBG("%s", __FUNCTION__); 319 EINA_LOG_DBG("%s", __FUNCTION__);
diff --git a/src/modules/ecore_imf/ibus/ibus_imcontext.h b/src/modules/ecore_imf/ibus/ibus_imcontext.h
index 141bfe7a00..93eff151cf 100644
--- a/src/modules/ecore_imf/ibus/ibus_imcontext.h
+++ b/src/modules/ecore_imf/ibus/ibus_imcontext.h
@@ -37,4 +37,5 @@ void ecore_imf_context_ibus_client_canvas_set(Ecore_IMF_Context *context, void *
37Eina_Bool ecore_imf_context_ibus_filter_event(Ecore_IMF_Context *ctx, Ecore_IMF_Event_Type type, Ecore_IMF_Event *event); 37Eina_Bool ecore_imf_context_ibus_filter_event(Ecore_IMF_Context *ctx, Ecore_IMF_Event_Type type, Ecore_IMF_Event *event);
38 38
39IBusIMContext *ecore_imf_context_ibus_new(void); 39IBusIMContext *ecore_imf_context_ibus_new(void);
40void ecore_imf_context_ibus_shutdown(void);
40#endif 41#endif
diff --git a/src/modules/ecore_imf/ibus/ibus_module.c b/src/modules/ecore_imf/ibus/ibus_module.c
index 63240f1908..c35ab3991a 100644
--- a/src/modules/ecore_imf/ibus/ibus_module.c
+++ b/src/modules/ecore_imf/ibus/ibus_module.c
@@ -81,6 +81,7 @@ im_module_init(void)
81 81
82static void im_module_shutdown(void) 82static void im_module_shutdown(void)
83{ 83{
84 ecore_imf_context_ibus_shutdown();
84} 85}
85 86
86static Ecore_IMF_Context * 87static Ecore_IMF_Context *