summaryrefslogtreecommitdiff
path: root/legacy/ecore/src/lib/ecore_imf/ecore_imf.c
diff options
context:
space:
mode:
authorCarsten Haitzler <raster@rasterman.com>2010-06-04 04:53:10 +0000
committerCarsten Haitzler <raster@rasterman.com>2010-06-04 04:53:10 +0000
commit6e1b5c42fa461c82d25145698320d1ab9a395ff5 (patch)
treee38efdae94677316ae071f7140b6690724e10291 /legacy/ecore/src/lib/ecore_imf/ecore_imf.c
parent8fba7a44764f1c2191bb547a00466809ddc89ba4 (diff)
formatting.
SVN revision: 49441
Diffstat (limited to '')
-rw-r--r--legacy/ecore/src/lib/ecore_imf/ecore_imf.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/legacy/ecore/src/lib/ecore_imf/ecore_imf.c b/legacy/ecore/src/lib/ecore_imf/ecore_imf.c
index 16c35202f1..99c4c52185 100644
--- a/legacy/ecore/src/lib/ecore_imf/ecore_imf.c
+++ b/legacy/ecore/src/lib/ecore_imf/ecore_imf.c
@@ -37,11 +37,9 @@ static int _ecore_imf_init_count = 0;
37EAPI int 37EAPI int
38ecore_imf_init(void) 38ecore_imf_init(void)
39{ 39{
40 if (++_ecore_imf_init_count != 1) 40 if (++_ecore_imf_init_count != 1) return _ecore_imf_init_count;
41 return _ecore_imf_init_count;
42 41
43 if (!ecore_init()) 42 if (!ecore_init()) return --_ecore_imf_init_count;
44 return --_ecore_imf_init_count;
45 _ecore_imf_log_dom = eina_log_domain_register("EcoreIMF", ECORE_IMF_DEFAULT_LOG_COLOR); 43 _ecore_imf_log_dom = eina_log_domain_register("EcoreIMF", ECORE_IMF_DEFAULT_LOG_COLOR);
46 if (_ecore_imf_log_dom < 0) 44 if (_ecore_imf_log_dom < 0)
47 { 45 {
@@ -69,12 +67,10 @@ ecore_imf_init(void)
69EAPI int 67EAPI int
70ecore_imf_shutdown(void) 68ecore_imf_shutdown(void)
71{ 69{
72 if (--_ecore_imf_init_count != 0) 70 if (--_ecore_imf_init_count != 0) return _ecore_imf_init_count;
73 return _ecore_imf_init_count;
74
75 ecore_shutdown();
76 ecore_imf_module_shutdown(); 71 ecore_imf_module_shutdown();
77 eina_log_domain_unregister(_ecore_imf_log_dom); 72 eina_log_domain_unregister(_ecore_imf_log_dom);
78 _ecore_imf_log_dom = -1; 73 _ecore_imf_log_dom = -1;
74 ecore_shutdown();
79 return _ecore_imf_init_count; 75 return _ecore_imf_init_count;
80} 76}