summaryrefslogtreecommitdiff
path: root/src/examples/emotion/emotion_signals_example.c
diff options
context:
space:
mode:
authorTom Hacohen <tom@stosb.com>2016-03-01 18:06:28 +0000
committerTom Hacohen <tom@stosb.com>2016-03-03 09:58:08 +0000
commitf21ade6123b9053fca8d1632644c48525a99d6e0 (patch)
treec5eb0445f471d21365a7a5a7b0ec7d279c11b398 /src/examples/emotion/emotion_signals_example.c
parent3faf3f3fc68a839f06b311c35ba020cb25e7c9c4 (diff)
Automatic migration to Eo4.
I just ran my script (email to follow) to migrate all of the EFL automatically. This commit is *only* the automatic conversion, so it can be easily reverted and re-run.
Diffstat (limited to 'src/examples/emotion/emotion_signals_example.c')
-rw-r--r--src/examples/emotion/emotion_signals_example.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/examples/emotion/emotion_signals_example.c b/src/examples/emotion/emotion_signals_example.c
index 3c56c40924..b84c47d899 100644
--- a/src/examples/emotion/emotion_signals_example.c
+++ b/src/examples/emotion/emotion_signals_example.c
@@ -68,8 +68,7 @@ _position_update_cb(void *data EINA_UNUSED,
68 Eo *o, const Eo_Event_Description *desc EINA_UNUSED, void *event_info EINA_UNUSED) 68 Eo *o, const Eo_Event_Description *desc EINA_UNUSED, void *event_info EINA_UNUSED)
69{ 69{
70 printf(">>> Emotion object first position update.\n"); 70 printf(">>> Emotion object first position update.\n");
71 eo_do(o, eo_event_callback_del(EMOTION_OBJECT_EVENT_POSITION_UPDATE, 71 eo_event_callback_del(o, EMOTION_OBJECT_EVENT_POSITION_UPDATE, _position_update_cb, NULL);
72 _position_update_cb, NULL));
73 _display_info(o); 72 _display_info(o);
74 73
75 return EINA_TRUE; 74 return EINA_TRUE;
@@ -80,8 +79,7 @@ _frame_decode_cb(void *data EINA_UNUSED,
80 Eo *o, const Eo_Event_Description *desc EINA_UNUSED, void *event_info EINA_UNUSED) 79 Eo *o, const Eo_Event_Description *desc EINA_UNUSED, void *event_info EINA_UNUSED)
81{ 80{
82 printf(">>> Emotion object first frame decode.\n"); 81 printf(">>> Emotion object first frame decode.\n");
83 eo_do(o, eo_event_callback_del(EMOTION_OBJECT_EVENT_FRAME_DECODE, 82 eo_event_callback_del(o, EMOTION_OBJECT_EVENT_FRAME_DECODE, _frame_decode_cb, NULL);
84 _frame_decode_cb, NULL));
85 _display_info(o); 83 _display_info(o);
86 84
87 return EINA_TRUE; 85 return EINA_TRUE;
@@ -121,8 +119,8 @@ static const Eo_Callback_Array_Item emotion_object_example_callbacks[] = {
121static void 119static void
122_setup_emotion_callbacks(Evas_Object *o) 120_setup_emotion_callbacks(Evas_Object *o)
123{ 121{
124 eo_do(o, eo_event_callback_add 122 eo_event_callback_add
125 (EMOTION_OBJECT_EVENT_PLAYBACK_STARTED, _playback_started_cb, NULL)); 123 (o, EMOTION_OBJECT_EVENT_PLAYBACK_STARTED, _playback_started_cb, NULL);
126} 124}
127 125
128int 126int