diff options
author | Carsten Haitzler <raster@rasterman.com> | 2010-06-04 04:53:10 +0000 |
---|---|---|
committer | Carsten Haitzler <raster@rasterman.com> | 2010-06-04 04:53:10 +0000 |
commit | 6e1b5c42fa461c82d25145698320d1ab9a395ff5 (patch) | |
tree | e38efdae94677316ae071f7140b6690724e10291 /legacy/ecore/src/lib/ecore_imf/ecore_imf.c | |
parent | 8fba7a44764f1c2191bb547a00466809ddc89ba4 (diff) |
formatting.
SVN revision: 49441
Diffstat (limited to '')
-rw-r--r-- | legacy/ecore/src/lib/ecore_imf/ecore_imf.c | 12 |
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; | |||
37 | EAPI int | 37 | EAPI int |
38 | ecore_imf_init(void) | 38 | ecore_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) | |||
69 | EAPI int | 67 | EAPI int |
70 | ecore_imf_shutdown(void) | 68 | ecore_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 | } |