summaryrefslogtreecommitdiff
path: root/legacy/ecore/src/lib/ecore_imf/ecore_imf.c
diff options
context:
space:
mode:
authorCedric BAIL <cedric.bail@free.fr>2009-12-21 17:32:19 +0000
committerCedric BAIL <cedric.bail@free.fr>2009-12-21 17:32:19 +0000
commitd8e18953501c8bed701d66d0acdd4153b1122206 (patch)
treec75a2f4ce26f4861de6ce956866f8973f2d3a1f0 /legacy/ecore/src/lib/ecore_imf/ecore_imf.c
parent2410d1f00a95ee235dc7dbf185e89dcd11c9060c (diff)
* ecore: Use eina_log.
Patch from Mathieu Taillefumier. SVN revision: 44637
Diffstat (limited to '')
-rw-r--r--legacy/ecore/src/lib/ecore_imf/ecore_imf.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/legacy/ecore/src/lib/ecore_imf/ecore_imf.c b/legacy/ecore/src/lib/ecore_imf/ecore_imf.c
index ff5d25157c..f563519212 100644
--- a/legacy/ecore/src/lib/ecore_imf/ecore_imf.c
+++ b/legacy/ecore/src/lib/ecore_imf/ecore_imf.c
@@ -18,6 +18,7 @@ EAPI int ECORE_IMF_EVENT_PREEDIT_CHANGED = 0;
18EAPI int ECORE_IMF_EVENT_COMMIT = 0; 18EAPI int ECORE_IMF_EVENT_COMMIT = 0;
19EAPI int ECORE_IMF_EVENT_DELETE_SURROUNDING = 0; 19EAPI int ECORE_IMF_EVENT_DELETE_SURROUNDING = 0;
20 20
21int _ecore_imf_log_dom = -1;
21static int _ecore_imf_init_count = 0; 22static int _ecore_imf_init_count = 0;
22 23
23/** 24/**
@@ -41,7 +42,13 @@ ecore_imf_init(void)
41 42
42 if (!ecore_init()) 43 if (!ecore_init())
43 return --_ecore_imf_init_count; 44 return --_ecore_imf_init_count;
44 45 _ecore_imf_log_dom = eina_log_domain_register("EcoreIMF", ECORE_DEFAULT_LOG_COLOR);
46 if(_ecore_imf_log_dom < 0)
47 {
48 EINA_LOG_ERR("Impossible to create a log domain for the Ecore IMF module.");
49 ecore_shutdown();
50 return --_ecore_imf_init_count;
51 }
45 ecore_imf_module_init(); 52 ecore_imf_module_init();
46 53
47 ECORE_IMF_EVENT_PREEDIT_START = ecore_event_type_new(); 54 ECORE_IMF_EVENT_PREEDIT_START = ecore_event_type_new();
@@ -67,6 +74,7 @@ ecore_imf_shutdown(void)
67 74
68 ecore_shutdown(); 75 ecore_shutdown();
69 ecore_imf_module_shutdown(); 76 ecore_imf_module_shutdown();
70 77 eina_log_domain_unregister(_ecore_imf_log_dom);
78 _ecore_imf_log_dom = -1;
71 return _ecore_imf_init_count; 79 return _ecore_imf_init_count;
72} 80}