void
_elm_config_sub_shutdown(void)
{
+ ecore_event_type_flush(ELM_EVENT_CONFIG_ALL_CHANGED);
+
#ifdef HAVE_ELEMENTARY_X
if (ecore_x_display_get()) ecore_x_shutdown();
#endif
memset(_elm_policies, 0, sizeof(_elm_policies));
if (!ELM_EVENT_POLICY_CHANGED)
- ELM_EVENT_POLICY_CHANGED = ecore_event_type_new();
- if (!ELM_EVENT_PROCESS_BACKGROUND)
- ELM_EVENT_PROCESS_BACKGROUND = ecore_event_type_new();
- if (!ELM_EVENT_PROCESS_FOREGROUND)
- ELM_EVENT_PROCESS_FOREGROUND = ecore_event_type_new();
+ {
+ ELM_EVENT_POLICY_CHANGED = ecore_event_type_new();
+ ELM_EVENT_PROCESS_BACKGROUND = ecore_event_type_new();
+ ELM_EVENT_PROCESS_FOREGROUND = ecore_event_type_new();
+ }
if (!ecore_file_init())
ERR("Elementary cannot init ecore_file");
eina_log_timing(_elm_log_dom, EINA_LOG_STATE_STOP, EINA_LOG_STATE_SHUTDOWN);
+ ecore_event_type_flush(ELM_EVENT_POLICY_CHANGED,
+ ELM_EVENT_PROCESS_BACKGROUND,
+ ELM_EVENT_PROCESS_FOREGROUND);
+
if (pfx) eina_prefix_free(pfx);
pfx = NULL;
ELM_SAFE_FREE(_elm_data_dir, eina_stringshare_del);
EOLIAN static void
_elm_sys_notify_class_constructor(Efl_Class *klass EINA_UNUSED)
{
- ELM_EVENT_SYS_NOTIFY_NOTIFICATION_CLOSED = ecore_event_type_new();
- ELM_EVENT_SYS_NOTIFY_ACTION_INVOKED = ecore_event_type_new();
+ if (ELM_EVENT_SYS_NOTIFY_NOTIFICATION_CLOSED == 0)
+ {
+ ELM_EVENT_SYS_NOTIFY_NOTIFICATION_CLOSED = ecore_event_type_new();
+ ELM_EVENT_SYS_NOTIFY_ACTION_INVOKED = ecore_event_type_new();
+ }
}
/*============================================================================*
{
if (!_elm_need_systray) return;
+ ecore_event_type_flush(ELM_EVENT_SYSTRAY_READY);
+
_elm_need_systray = EINA_FALSE;
eldbus_service_interface_unregister(_iface);
_elm_ethumb_client = NULL;
}
ethumb_client_shutdown();
- ELM_ECORE_EVENT_ETHUMB_CONNECT = 0;
+
+ ecore_event_type_flush(ELM_ECORE_EVENT_ETHUMB_CONNECT);
}
static Eina_Bool
if (_elm_need_ethumb) return EINA_TRUE;
_elm_need_ethumb = EINA_TRUE;
- ELM_ECORE_EVENT_ETHUMB_CONNECT = ecore_event_type_new();
+ if (ELM_ECORE_EVENT_ETHUMB_CONNECT == 0)
+ ELM_ECORE_EVENT_ETHUMB_CONNECT = ecore_event_type_new();
ethumb_client_init();
return EINA_TRUE;