summaryrefslogtreecommitdiff
path: root/src/examples/emotion/emotion_generic_example.c
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2016-06-16 13:02:19 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2016-06-16 13:10:35 +0900
commit3340745c65ef8b8361dc6eff5e746f7ce1104378 (patch)
treec3740be7be7d985da050cf3d00c3153abaab69a8 /src/examples/emotion/emotion_generic_example.c
parent2d995fdedc6ac67bb9b7fabb38a7b4e1b3e663c9 (diff)
examples: Use EO_CALLBACKS_ARRAY_DEFINE in all examples
Again, for Windows.
Diffstat (limited to 'src/examples/emotion/emotion_generic_example.c')
-rw-r--r--src/examples/emotion/emotion_generic_example.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/examples/emotion/emotion_generic_example.c b/src/examples/emotion/emotion_generic_example.c
index ec15a61..f0d7fab 100644
--- a/src/examples/emotion/emotion_generic_example.c
+++ b/src/examples/emotion/emotion_generic_example.c
@@ -164,13 +164,11 @@ _progress_change_cb(void *data EINA_UNUSED, const Eo_Event *ev)
164 return EINA_TRUE; 164 return EINA_TRUE;
165} 165}
166 166
167static const Eo_Callback_Array_Item emotion_object_example_callbacks[] = { 167EO_CALLBACKS_ARRAY_DEFINE(emotion_object_example_callbacks,
168 { EMOTION_OBJECT_EVENT_FRAME_DECODE, _frame_decode_cb }, 168 { EMOTION_OBJECT_EVENT_FRAME_DECODE, _frame_decode_cb },
169 { EMOTION_OBJECT_EVENT_LENGTH_CHANGE, _length_change_cb }, 169 { EMOTION_OBJECT_EVENT_LENGTH_CHANGE, _length_change_cb },
170 { EMOTION_OBJECT_EVENT_POSITION_UPDATE, _position_update_cb }, 170 { EMOTION_OBJECT_EVENT_POSITION_UPDATE, _position_update_cb },
171 { EMOTION_OBJECT_EVENT_PROGRESS_CHANGE, _progress_change_cb }, 171 { EMOTION_OBJECT_EVENT_PROGRESS_CHANGE, _progress_change_cb });
172 { NULL, NULL }
173};
174 172
175int 173int
176main(int argc, const char *argv[]) 174main(int argc, const char *argv[])
@@ -221,7 +219,7 @@ main(int argc, const char *argv[])
221 evas_object_resize(em, WIDTH, HEIGHT); 219 evas_object_resize(em, WIDTH, HEIGHT);
222 evas_object_show(em); 220 evas_object_show(em);
223 221
224 eo_event_callback_array_add(em, emotion_object_example_callbacks, NULL); 222 eo_event_callback_array_add(em, emotion_object_example_callbacks(), NULL);
225 223
226 evas_object_event_callback_add(bg, EVAS_CALLBACK_KEY_DOWN, _on_key_down, em); 224 evas_object_event_callback_add(bg, EVAS_CALLBACK_KEY_DOWN, _on_key_down, em);
227 evas_object_focus_set(bg, EINA_TRUE); 225 evas_object_focus_set(bg, EINA_TRUE);