summaryrefslogtreecommitdiff
path: root/src/lib/evas/canvas/evas_callbacks.c
diff options
context:
space:
mode:
authorCedric BAIL <cedric@osg.samsung.com>2014-08-06 10:34:31 +0200
committerCedric BAIL <cedric@osg.samsung.com>2014-08-06 10:37:09 +0200
commitd52f122db48c7ee8fea19415d33605735a97bedf (patch)
tree01a3b9ef885d644ab7d0797151f4059a92474dd6 /src/lib/evas/canvas/evas_callbacks.c
parentbfdc83b85f982b4edbef4c84673f574a0608a0b6 (diff)
evas: fix evas events order and count.
Before this patch, if you were hooking to any event above EVAS_OBJECT_EVENT_IMAGE_PRELOADED you will end up receiving another event instead and be fooled into receiving the right one. In the mean time I did discover that our table is missing one item, the equivalent to EVAS_CALLBACK_DEVICE_CHANGED. I don't know how to properly fix that one for now, so put NULL instead to at least avoid a random memory access.
Diffstat (limited to 'src/lib/evas/canvas/evas_callbacks.c')
-rw-r--r--src/lib/evas/canvas/evas_callbacks.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lib/evas/canvas/evas_callbacks.c b/src/lib/evas/canvas/evas_callbacks.c
index 863c81faf5..4beac93d58 100644
--- a/src/lib/evas/canvas/evas_callbacks.c
+++ b/src/lib/evas/canvas/evas_callbacks.c
@@ -53,7 +53,6 @@ static const Eo_Event_Description *_legacy_evas_callback_table[EVAS_CALLBACK_LAS
53 EVAS_OBJECT_EVENT_HOLD, 53 EVAS_OBJECT_EVENT_HOLD,
54 EVAS_OBJECT_EVENT_CHANGED_SIZE_HINTS, 54 EVAS_OBJECT_EVENT_CHANGED_SIZE_HINTS,
55 EVAS_OBJECT_EVENT_IMAGE_PRELOADED, 55 EVAS_OBJECT_EVENT_IMAGE_PRELOADED,
56 EVAS_OBJECT_EVENT_IMAGE_RESIZE,
57 EVAS_CANVAS_EVENT_FOCUS_IN, 56 EVAS_CANVAS_EVENT_FOCUS_IN,
58 EVAS_CANVAS_EVENT_FOCUS_OUT, 57 EVAS_CANVAS_EVENT_FOCUS_OUT,
59 EVAS_CANVAS_EVENT_RENDER_FLUSH_PRE, 58 EVAS_CANVAS_EVENT_RENDER_FLUSH_PRE,
@@ -62,7 +61,9 @@ static const Eo_Event_Description *_legacy_evas_callback_table[EVAS_CALLBACK_LAS
62 EVAS_CANVAS_EVENT_OBJECT_FOCUS_OUT, 61 EVAS_CANVAS_EVENT_OBJECT_FOCUS_OUT,
63 EVAS_OBJECT_EVENT_IMAGE_UNLOADED, 62 EVAS_OBJECT_EVENT_IMAGE_UNLOADED,
64 EVAS_CANVAS_EVENT_RENDER_PRE, 63 EVAS_CANVAS_EVENT_RENDER_PRE,
65 EVAS_CANVAS_EVENT_RENDER_POST 64 EVAS_CANVAS_EVENT_RENDER_POST,
65 EVAS_OBJECT_EVENT_IMAGE_RESIZE,
66 NULL
66}; 67};
67 68
68typedef struct 69typedef struct