No need to call ecore init/shutodown here

they are called in e_dbus_init/shutdown
This commit is contained in:
Davide Andreoli 2014-08-23 21:15:46 +02:00
parent 3544e7408f
commit d3794d9566
2 changed files with 0 additions and 6 deletions

View File

@ -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 *)
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":
ctypedef struct E_DBus_Connection

View File

@ -46,12 +46,10 @@ def DBusEcoreMainLoop(set_as_default = None):
def module_cleanup():
e_dbus_shutdown()
ecore_shutdown()
if import_dbus_bindings("efl.dbus_mainloop") < 0:
raise ImportError("failed to import D-Bus bindings")
ecore_init()
e_dbus_init()
atexit.register(module_cleanup)