No need to call ecore init/shutodown here
they are called in e_dbus_init/shutdown
This commit is contained in:
parent
3544e7408f
commit
d3794d9566
|
@ -12,10 +12,6 @@ cdef extern from "dbus/dbus-python.h":
|
||||||
PyObject *DBusPyNativeMainLoop_New4(_dbus_py_conn_setup_func conn_func, _dbus_py_srv_setup_func srv_func, _dbus_py_free_func free_func, void *)
|
PyObject *DBusPyNativeMainLoop_New4(_dbus_py_conn_setup_func conn_func, _dbus_py_srv_setup_func srv_func, _dbus_py_free_func free_func, void *)
|
||||||
int import_dbus_bindings(const char *this_module_name)
|
int import_dbus_bindings(const char *this_module_name)
|
||||||
|
|
||||||
cdef extern from "Ecore.h":
|
|
||||||
int ecore_init()
|
|
||||||
void ecore_shutdown()
|
|
||||||
|
|
||||||
cdef extern from "e_dbus.h":
|
cdef extern from "e_dbus.h":
|
||||||
ctypedef struct E_DBus_Connection
|
ctypedef struct E_DBus_Connection
|
||||||
|
|
||||||
|
|
|
@ -46,12 +46,10 @@ def DBusEcoreMainLoop(set_as_default = None):
|
||||||
|
|
||||||
def module_cleanup():
|
def module_cleanup():
|
||||||
e_dbus_shutdown()
|
e_dbus_shutdown()
|
||||||
ecore_shutdown()
|
|
||||||
|
|
||||||
if import_dbus_bindings("efl.dbus_mainloop") < 0:
|
if import_dbus_bindings("efl.dbus_mainloop") < 0:
|
||||||
raise ImportError("failed to import D-Bus bindings")
|
raise ImportError("failed to import D-Bus bindings")
|
||||||
|
|
||||||
ecore_init()
|
|
||||||
e_dbus_init()
|
e_dbus_init()
|
||||||
|
|
||||||
atexit.register(module_cleanup)
|
atexit.register(module_cleanup)
|
||||||
|
|
Loading…
Reference in New Issue