summaryrefslogtreecommitdiff
path: root/efl/ecore_x
diff options
context:
space:
mode:
authorKai Huuhko <kai.huuhko@gmail.com>2015-05-04 03:35:50 +0300
committerKai Huuhko <kai.huuhko@gmail.com>2015-05-04 03:36:54 +0300
commitbc0f40e54c4790bd106b904eb0842fc46b42ee15 (patch)
treef914786783bdffed98136a1b5ffdf64fa631418a /efl/ecore_x
parent532bc85acd69d4cc605ee015fe3e60ecd8e54b0b (diff)
Add automated init/shutdown to rest of the modules
Diffstat (limited to 'efl/ecore_x')
-rw-r--r--efl/ecore_x/efl.ecore_x.pyx5
1 files changed, 5 insertions, 0 deletions
diff --git a/efl/ecore_x/efl.ecore_x.pyx b/efl/ecore_x/efl.ecore_x.pyx
index 4baf32b..cf0e90e 100644
--- a/efl/ecore_x/efl.ecore_x.pyx
+++ b/efl/ecore_x/efl.ecore_x.pyx
@@ -19,6 +19,8 @@
19from cpython cimport PyMem_Malloc, PyMem_Free, PyUnicode_AsUTF8String 19from cpython cimport PyMem_Malloc, PyMem_Free, PyUnicode_AsUTF8String
20from efl.utils.deprecated cimport DEPRECATED 20from efl.utils.deprecated cimport DEPRECATED
21 21
22import atexit
23
22 24
23def init(name=None): 25def init(name=None):
24 """Initialize the X display connection to the given display. 26 """Initialize the X display connection to the given display.
@@ -322,3 +324,6 @@ def cursor_free(Ecore_X_Cursor c):
322 324
323include "efl.ecore_x_window.pxi" 325include "efl.ecore_x_window.pxi"
324include "efl.ecore_x_events.pxi" 326include "efl.ecore_x_events.pxi"
327
328init()
329atexit.register(shutdown)