summaryrefslogtreecommitdiff
path: root/src/examples/emotion/emotion_border_example.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/examples/emotion/emotion_border_example.c')
-rw-r--r--src/examples/emotion/emotion_border_example.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/examples/emotion/emotion_border_example.c b/src/examples/emotion/emotion_border_example.c
index aac68fd..67c43a9 100644
--- a/src/examples/emotion/emotion_border_example.c
+++ b/src/examples/emotion/emotion_border_example.c
@@ -167,14 +167,12 @@ _canvas_resize_cb(Ecore_Evas *ee)
167 evas_object_resize(em, w - 20, h - 20); 167 evas_object_resize(em, w - 20, h - 20);
168} 168}
169 169
170static const Eo_Callback_Array_Item emotion_object_example_callbacks[] = { 170EO_CALLBACKS_ARRAY_DEFINE(emotion_object_example_callbacks,
171 { EMOTION_OBJECT_EVENT_FRAME_DECODE, _frame_decode_cb }, 171 { EMOTION_OBJECT_EVENT_FRAME_DECODE, _frame_decode_cb },
172 { EMOTION_OBJECT_EVENT_LENGTH_CHANGE, _length_change_cb }, 172 { EMOTION_OBJECT_EVENT_LENGTH_CHANGE, _length_change_cb },
173 { EMOTION_OBJECT_EVENT_POSITION_UPDATE, _position_update_cb }, 173 { EMOTION_OBJECT_EVENT_POSITION_UPDATE, _position_update_cb },
174 { EMOTION_OBJECT_EVENT_PROGRESS_CHANGE, _progress_change_cb }, 174 { EMOTION_OBJECT_EVENT_PROGRESS_CHANGE, _progress_change_cb },
175 { EMOTION_OBJECT_EVENT_FRAME_RESIZE, _frame_resize_cb }, 175 { EMOTION_OBJECT_EVENT_FRAME_RESIZE, _frame_resize_cb });
176 { NULL, NULL }
177};
178 176
179int 177int
180main(int argc, const char *argv[]) 178main(int argc, const char *argv[])
@@ -234,7 +232,7 @@ main(int argc, const char *argv[])
234 232
235 ecore_evas_data_set(ee, "emotion", em); 233 ecore_evas_data_set(ee, "emotion", em);
236 234
237 eo_event_callback_array_add(em, emotion_object_example_callbacks, NULL); 235 eo_event_callback_array_add(em, emotion_object_example_callbacks(), NULL);
238 236
239 evas_object_event_callback_add(bg, EVAS_CALLBACK_KEY_DOWN, _on_key_down, em); 237 evas_object_event_callback_add(bg, EVAS_CALLBACK_KEY_DOWN, _on_key_down, em);
240 evas_object_focus_set(bg, EINA_TRUE); 238 evas_object_focus_set(bg, EINA_TRUE);