summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvi Levin <avi.levin@samsung.com>2015-04-29 14:30:15 +0300
committerAvi Levin <avi.levin@samsung.com>2015-06-29 17:03:30 +0300
commit0682b0e52541e5b53e4168f0f83d7765da80b39d (patch)
tree78d57859cf63242f362b69486e0ef3d469910d8f
parent66efa76b05a791e99be5f3714380c871bf403dca (diff)
elm_dayselector: porting evas smart callbacks to eo
-rw-r--r--src/lib/elm_dayselector.c15
1 files changed, 9 insertions, 6 deletions
diff --git a/src/lib/elm_dayselector.c b/src/lib/elm_dayselector.c
index c3fed5fb1..6f601477a 100644
--- a/src/lib/elm_dayselector.c
+++ b/src/lib/elm_dayselector.c
@@ -191,14 +191,15 @@ _item_signal_emit_cb(void *data,
191 eina_stringshare_replace(&it->day_style, emission); 191 eina_stringshare_replace(&it->day_style, emission);
192} 192}
193 193
194static void 194static Eina_Bool
195_item_clicked_cb(void *data, 195_item_clicked_cb(void *data,
196 Evas_Object *obj EINA_UNUSED, 196 Eo *obj EINA_UNUSED, const Eo_Event_Description *desc EINA_UNUSED, void *event_info EINA_UNUSED)
197 void *event_info EINA_UNUSED)
198{ 197{
199 Elm_Dayselector_Item_Data *it = data; 198 Elm_Dayselector_Item_Data *it = data;
200 199
201 evas_object_smart_callback_call(WIDGET(it), SIG_CHANGED, (void *)it->day); 200 eo_do(WIDGET(it), eo_event_callback_call(ELM_CHECK_EVENT_CHANGED, (void *)it->day));
201
202 return EINA_TRUE;
202} 203}
203 204
204static Elm_Dayselector_Item_Data * 205static Elm_Dayselector_Item_Data *
@@ -269,7 +270,8 @@ _elm_dayselector_elm_container_content_set(Eo *obj, Elm_Dayselector_Data *sd, co
269 snprintf(buf, sizeof(buf), "day%d,visible", _item_location_get(sd, it)); 270 snprintf(buf, sizeof(buf), "day%d,visible", _item_location_get(sd, it));
270 elm_layout_signal_emit(obj, buf, "elm"); 271 elm_layout_signal_emit(obj, buf, "elm");
271 272
272 evas_object_smart_callback_add(VIEW(it), "changed", _item_clicked_cb, it); 273 eo_do(VIEW(it), eo_event_callback_add
274 (ELM_CHECK_EVENT_CHANGED, _item_clicked_cb, it));
273 evas_object_event_callback_add 275 evas_object_event_callback_add
274 (VIEW(it), EVAS_CALLBACK_DEL, _item_del_cb, obj); 276 (VIEW(it), EVAS_CALLBACK_DEL, _item_del_cb, obj);
275 277
@@ -317,7 +319,8 @@ _elm_dayselector_elm_container_content_unset(Eo *obj, Elm_Dayselector_Data *sd,
317 if (!content) return NULL; 319 if (!content) return NULL;
318 320
319 sd->items = eina_list_remove(sd->items, it); 321 sd->items = eina_list_remove(sd->items, it);
320 evas_object_smart_callback_del(content, "changed", _item_clicked_cb); 322 eo_do(content, eo_event_callback_del(
323 ELM_CHECK_EVENT_CHANGED, _item_clicked_cb, it));
321 evas_object_event_callback_del(content, EVAS_CALLBACK_DEL, _item_del_cb); 324 evas_object_event_callback_del(content, EVAS_CALLBACK_DEL, _item_del_cb);
322 325
323 elm_object_signal_callback_del 326 elm_object_signal_callback_del