summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Juyung Seo <seojuyung2@gmail.com>2012-09-20 00:46:16 +0000
committerDaniel Juyung Seo <seojuyung2@gmail.com>2012-09-20 00:46:16 +0000
commit9ac69e8b052ca3eef3af5d754fc509d9b2b0804c (patch)
tree4580683c2d28820d48f4abd138be891166387a37
parentfa314c3be6eb7d7a09a50c9ace5b4e4c36d71ca3 (diff)
python-evas: Tried to fix up broken python binding. Can anybody finish this job?
SVN revision: 76878
-rw-r--r--evas/__init__.py1
-rw-r--r--evas/evas.c_evas_canvas_callbacks.pxi4
-rw-r--r--evas/evas.c_evas_object_callbacks.pxi5
-rw-r--r--include/evas/c_evas.pxd1
4 files changed, 11 insertions, 0 deletions
diff --git a/evas/__init__.py b/evas/__init__.py
index 7bb441b..e9c9bad 100644
--- a/evas/__init__.py
+++ b/evas/__init__.py
@@ -63,6 +63,7 @@ EVAS_CALLBACK_IMAGE_UNLOADED = 29
63EVAS_CALLBACK_RENDER_PRE = 30 63EVAS_CALLBACK_RENDER_PRE = 30
64EVAS_CALLBACK_RENDER_POST = 31 64EVAS_CALLBACK_RENDER_POST = 31
65EVAS_CALLBACK_IMAGE_RESIZE = 32 65EVAS_CALLBACK_IMAGE_RESIZE = 32
66EVAS_CALLBACK_DEVICE_CHANGED = 33
66 67
67EVAS_BUTTON_NONE = 0 68EVAS_BUTTON_NONE = 0
68EVAS_BUTTON_DOUBLE_CLICK = 1 69EVAS_BUTTON_DOUBLE_CLICK = 1
diff --git a/evas/evas.c_evas_canvas_callbacks.pxi b/evas/evas.c_evas_canvas_callbacks.pxi
index c45c5bb..a4b89f3 100644
--- a/evas/evas.c_evas_canvas_callbacks.pxi
+++ b/evas/evas.c_evas_canvas_callbacks.pxi
@@ -135,6 +135,9 @@ cdef void cb_canvas_image_preloaded(void *data, Evas *e, void *e_inf) with gil:
135cdef void cb_canvas_image_resize(void *data, Evas *e, void *e_inf) with gil: 135cdef void cb_canvas_image_resize(void *data, Evas *e, void *e_inf) with gil:
136 print "EVAS_CALLBACK_IMAGE_RESIZE is not supported by canvas." 136 print "EVAS_CALLBACK_IMAGE_RESIZE is not supported by canvas."
137 137
138cdef void cb_canvas_device_changed(void *data, Evas *e, void *e_inf) with gil:
139 print "EVAS_CALLBACK_DEVICE_CHANGED is not supported by canvas."
140
138cdef void cb_canvas_canvas_focus_in(void *data, Evas *e, void *e_inf) with gil: 141cdef void cb_canvas_canvas_focus_in(void *data, Evas *e, void *e_inf) with gil:
139 cb_canvas_dispatcher2(<Canvas>data, EVAS_CALLBACK_CANVAS_FOCUS_IN) 142 cb_canvas_dispatcher2(<Canvas>data, EVAS_CALLBACK_CANVAS_FOCUS_IN)
140 143
@@ -215,3 +218,4 @@ evas_canvas_event_callbacks[EVAS_CALLBACK_IMAGE_UNLOADED] = cb_canvas_image_unlo
215evas_canvas_event_callbacks[EVAS_CALLBACK_RENDER_PRE] = cb_canvas_render_pre 218evas_canvas_event_callbacks[EVAS_CALLBACK_RENDER_PRE] = cb_canvas_render_pre
216evas_canvas_event_callbacks[EVAS_CALLBACK_RENDER_POST] = cb_canvas_render_post 219evas_canvas_event_callbacks[EVAS_CALLBACK_RENDER_POST] = cb_canvas_render_post
217evas_canvas_event_callbacks[EVAS_CALLBACK_IMAGE_RESIZE] = cb_canvas_image_resize 220evas_canvas_event_callbacks[EVAS_CALLBACK_IMAGE_RESIZE] = cb_canvas_image_resize
221evas_canvas_event_callbacks[EVAS_CALLBACK_DEVICE_CHANGED] = cb_canvas_device_changed
diff --git a/evas/evas.c_evas_object_callbacks.pxi b/evas/evas.c_evas_object_callbacks.pxi
index b599b04..2d45721 100644
--- a/evas/evas.c_evas_object_callbacks.pxi
+++ b/evas/evas.c_evas_object_callbacks.pxi
@@ -206,6 +206,10 @@ cdef void cb_object_image_resize(void *data, Evas *e,
206 Evas_Object *obj, void *e_inf) with gil: 206 Evas_Object *obj, void *e_inf) with gil:
207 cb_object_dispatcher2(<Object>data, EVAS_CALLBACK_IMAGE_RESIZE) 207 cb_object_dispatcher2(<Object>data, EVAS_CALLBACK_IMAGE_RESIZE)
208 208
209cdef void cb_object_device_changed(void *data, Evas *e,
210 Evas_Object *obj, void *e_inf) with gil:
211 cb_object_dispatcher2(<Object>data, EVAS_CALLBACK_DEVICE_CHANGED)
212
209cdef void cb_object_canvas_focus_in(void *data, Evas *e, 213cdef void cb_object_canvas_focus_in(void *data, Evas *e,
210 Evas_Object *obj, void *e_inf) with gil: 214 Evas_Object *obj, void *e_inf) with gil:
211 print "EVAS_CALLBACK_FOCUS_IN is not supported by object." 215 print "EVAS_CALLBACK_FOCUS_IN is not supported by object."
@@ -282,3 +286,4 @@ evas_object_event_callbacks[EVAS_CALLBACK_IMAGE_UNLOADED] = cb_object_image_unlo
282evas_object_event_callbacks[EVAS_CALLBACK_RENDER_PRE] = cb_object_canvas_render_pre 286evas_object_event_callbacks[EVAS_CALLBACK_RENDER_PRE] = cb_object_canvas_render_pre
283evas_object_event_callbacks[EVAS_CALLBACK_RENDER_POST] = cb_object_canvas_render_post 287evas_object_event_callbacks[EVAS_CALLBACK_RENDER_POST] = cb_object_canvas_render_post
284evas_object_event_callbacks[EVAS_CALLBACK_IMAGE_RESIZE] = cb_object_image_resize 288evas_object_event_callbacks[EVAS_CALLBACK_IMAGE_RESIZE] = cb_object_image_resize
289evas_object_event_callbacks[EVAS_CALLBACK_DEVICE_CHANGED] = cb_object_device_changed
diff --git a/include/evas/c_evas.pxd b/include/evas/c_evas.pxd
index 6b3725d..fe3343c 100644
--- a/include/evas/c_evas.pxd
+++ b/include/evas/c_evas.pxd
@@ -77,6 +77,7 @@ cdef extern from "Evas.h":
77 cdef int EVAS_CALLBACK_RENDER_PRE 77 cdef int EVAS_CALLBACK_RENDER_PRE
78 cdef int EVAS_CALLBACK_RENDER_POST 78 cdef int EVAS_CALLBACK_RENDER_POST
79 cdef int EVAS_CALLBACK_IMAGE_RESIZE 79 cdef int EVAS_CALLBACK_IMAGE_RESIZE
80 cdef int EVAS_CALLBACK_DEVICE_CHANGED
80 cdef int EVAS_CALLBACK_LAST 81 cdef int EVAS_CALLBACK_LAST
81 82
82 83