forked from enlightenment/efl
parent
f8cc974e07
commit
8fba7a4476
|
@ -39,18 +39,18 @@ ecore_imf_init(void)
|
|||
{
|
||||
if (++_ecore_imf_init_count != 1)
|
||||
return _ecore_imf_init_count;
|
||||
|
||||
|
||||
if (!ecore_init())
|
||||
return --_ecore_imf_init_count;
|
||||
_ecore_imf_log_dom = eina_log_domain_register("EcoreIMF", ECORE_IMF_DEFAULT_LOG_COLOR);
|
||||
if(_ecore_imf_log_dom < 0)
|
||||
if (_ecore_imf_log_dom < 0)
|
||||
{
|
||||
EINA_LOG_ERR("Impossible to create a log domain for the Ecore IMF module.");
|
||||
ecore_shutdown();
|
||||
return --_ecore_imf_init_count;
|
||||
EINA_LOG_ERR("Impossible to create a log domain for the Ecore IMF module.");
|
||||
ecore_shutdown();
|
||||
return --_ecore_imf_init_count;
|
||||
}
|
||||
ecore_imf_module_init();
|
||||
|
||||
|
||||
ECORE_IMF_EVENT_PREEDIT_START = ecore_event_type_new();
|
||||
ECORE_IMF_EVENT_PREEDIT_END = ecore_event_type_new();
|
||||
ECORE_IMF_EVENT_PREEDIT_CHANGED = ecore_event_type_new();
|
||||
|
@ -71,7 +71,7 @@ ecore_imf_shutdown(void)
|
|||
{
|
||||
if (--_ecore_imf_init_count != 0)
|
||||
return _ecore_imf_init_count;
|
||||
|
||||
|
||||
ecore_shutdown();
|
||||
ecore_imf_module_shutdown();
|
||||
eina_log_domain_unregister(_ecore_imf_log_dom);
|
||||
|
|
Loading…
Reference in New Issue