summaryrefslogtreecommitdiff
path: root/src/lib/elementary/elm_dayselector.c
diff options
context:
space:
mode:
authorTom Hacohen <tom@stosb.com>2016-08-15 14:44:41 +0100
committerTom Hacohen <tom@stosb.com>2016-08-15 15:07:42 +0100
commite65aae994e72c1d3f8ac6b5360d3772f177b77ef (patch)
tree7ecaf136e45470635889191aded2b47057720a98 /src/lib/elementary/elm_dayselector.c
parent35abb3c34d10a4826c98055fb85ecf93915e5ea8 (diff)
Eo: Finish the renaming of Eo to the EFL.
This renames all the rest of the API to the EFL namespace except for Eo_Event that will follow soon. Obviously breaks both API and ABI.
Diffstat (limited to 'src/lib/elementary/elm_dayselector.c')
-rw-r--r--src/lib/elementary/elm_dayselector.c26
1 files changed, 13 insertions, 13 deletions
diff --git a/src/lib/elementary/elm_dayselector.c b/src/lib/elementary/elm_dayselector.c
index af8112a..6444323 100644
--- a/src/lib/elementary/elm_dayselector.c
+++ b/src/lib/elementary/elm_dayselector.c
@@ -76,7 +76,7 @@ _elm_dayselector_elm_widget_translate(Eo *obj EINA_UNUSED, Elm_Dayselector_Data
76 elm_object_text_set(VIEW(it), buf); 76 elm_object_text_set(VIEW(it), buf);
77 } 77 }
78 78
79 elm_obj_widget_translate(eo_super(obj, MY_CLASS)); 79 elm_obj_widget_translate(efl_super(obj, MY_CLASS));
80 80
81 return EINA_TRUE; 81 return EINA_TRUE;
82} 82}
@@ -132,7 +132,7 @@ _elm_dayselector_elm_widget_theme_apply(Eo *obj, Elm_Dayselector_Data *sd)
132 char buf[1024]; 132 char buf[1024];
133 Elm_Dayselector_Item_Data *it; 133 Elm_Dayselector_Item_Data *it;
134 134
135 int_ret = elm_obj_widget_theme_apply(eo_super(obj, MY_CLASS)); 135 int_ret = elm_obj_widget_theme_apply(efl_super(obj, MY_CLASS));
136 if (!int_ret) return ELM_THEME_APPLY_FAILED; 136 if (!int_ret) return ELM_THEME_APPLY_FAILED;
137 137
138 EINA_LIST_FOREACH(sd->items, l, it) 138 EINA_LIST_FOREACH(sd->items, l, it)
@@ -240,7 +240,7 @@ _elm_dayselector_content_set(Eo *obj, Elm_Dayselector_Data *sd, const char *item
240 { 240 {
241 snprintf(buf, sizeof(buf), "day%d", _item_location_get(sd, it)); 241 snprintf(buf, sizeof(buf), "day%d", _item_location_get(sd, it));
242 242
243 int_ret = efl_content_set(efl_part(eo_super(obj, MY_CLASS), buf), content); 243 int_ret = efl_content_set(efl_part(efl_super(obj, MY_CLASS), buf), content);
244 if (!int_ret) return EINA_FALSE; 244 if (!int_ret) return EINA_FALSE;
245 245
246 if (!content) return EINA_TRUE; /* item deletion already handled */ 246 if (!content) return EINA_TRUE; /* item deletion already handled */
@@ -250,13 +250,13 @@ _elm_dayselector_content_set(Eo *obj, Elm_Dayselector_Data *sd, const char *item
250 } 250 }
251 else 251 else
252 { 252 {
253 Eo *eo_it = eo_add(ELM_DAYSELECTOR_ITEM_CLASS, obj); 253 Eo *eo_it = efl_add(ELM_DAYSELECTOR_ITEM_CLASS, obj);
254 it = eo_data_scope_get(eo_it, ELM_DAYSELECTOR_ITEM_CLASS); 254 it = efl_data_scope_get(eo_it, ELM_DAYSELECTOR_ITEM_CLASS);
255 it->day = day; 255 it->day = day;
256 256
257 snprintf(buf, sizeof(buf), "day%d", _item_location_get(sd, it)); 257 snprintf(buf, sizeof(buf), "day%d", _item_location_get(sd, it));
258 258
259 int_ret = efl_content_set(efl_part(eo_super(obj, MY_CLASS), buf), content); 259 int_ret = efl_content_set(efl_part(efl_super(obj, MY_CLASS), buf), content);
260 if (!int_ret) 260 if (!int_ret)
261 { 261 {
262 efl_del(eo_it); 262 efl_del(eo_it);
@@ -293,8 +293,8 @@ _elm_dayselector_content_set(Eo *obj, Elm_Dayselector_Data *sd, const char *item
293EOLIAN static Eo * 293EOLIAN static Eo *
294_elm_dayselector_item_efl_object_constructor(Eo *eo_item, Elm_Dayselector_Item_Data *item) 294_elm_dayselector_item_efl_object_constructor(Eo *eo_item, Elm_Dayselector_Item_Data *item)
295{ 295{
296 eo_item = efl_constructor(eo_super(eo_item, ELM_DAYSELECTOR_ITEM_CLASS)); 296 eo_item = efl_constructor(efl_super(eo_item, ELM_DAYSELECTOR_ITEM_CLASS));
297 item->base = eo_data_scope_get(eo_item, ELM_WIDGET_ITEM_CLASS); 297 item->base = efl_data_scope_get(eo_item, ELM_WIDGET_ITEM_CLASS);
298 298
299 return eo_item; 299 return eo_item;
300} 300}
@@ -315,7 +315,7 @@ _elm_dayselector_content_unset(Eo *obj, Elm_Dayselector_Data *sd, const char *it
315 315
316 content = VIEW(it); 316 content = VIEW(it);
317 317
318 content = efl_content_unset(efl_part(eo_super(obj, MY_CLASS), buf)); 318 content = efl_content_unset(efl_part(efl_super(obj, MY_CLASS), buf));
319 if (!content) return NULL; 319 if (!content) return NULL;
320 320
321 sd->items = eina_list_remove(sd->items, it); 321 sd->items = eina_list_remove(sd->items, it);
@@ -415,7 +415,7 @@ _items_create(Evas_Object *obj)
415EOLIAN static void 415EOLIAN static void
416_elm_dayselector_efl_canvas_group_group_add(Eo *obj, Elm_Dayselector_Data *priv) 416_elm_dayselector_efl_canvas_group_group_add(Eo *obj, Elm_Dayselector_Data *priv)
417{ 417{
418 efl_canvas_group_add(eo_super(obj, MY_CLASS)); 418 efl_canvas_group_add(efl_super(obj, MY_CLASS));
419 elm_widget_sub_object_parent_add(obj); 419 elm_widget_sub_object_parent_add(obj);
420 420
421 if (!elm_layout_theme_set(obj, "dayselector", "base", 421 if (!elm_layout_theme_set(obj, "dayselector", "base",
@@ -446,21 +446,21 @@ _elm_dayselector_efl_canvas_group_group_del(Eo *obj, Elm_Dayselector_Data *sd)
446 } 446 }
447 447
448 /* handles freeing sd */ 448 /* handles freeing sd */
449 efl_canvas_group_del(eo_super(obj, MY_CLASS)); 449 efl_canvas_group_del(efl_super(obj, MY_CLASS));
450} 450}
451 451
452EAPI Evas_Object * 452EAPI Evas_Object *
453elm_dayselector_add(Evas_Object *parent) 453elm_dayselector_add(Evas_Object *parent)
454{ 454{
455 EINA_SAFETY_ON_NULL_RETURN_VAL(parent, NULL); 455 EINA_SAFETY_ON_NULL_RETURN_VAL(parent, NULL);
456 Evas_Object *obj = eo_add(MY_CLASS, parent); 456 Evas_Object *obj = efl_add(MY_CLASS, parent);
457 return obj; 457 return obj;
458} 458}
459 459
460EOLIAN static Eo * 460EOLIAN static Eo *
461_elm_dayselector_efl_object_constructor(Eo *obj, Elm_Dayselector_Data *_pd EINA_UNUSED) 461_elm_dayselector_efl_object_constructor(Eo *obj, Elm_Dayselector_Data *_pd EINA_UNUSED)
462{ 462{
463 obj = efl_constructor(eo_super(obj, MY_CLASS)); 463 obj = efl_constructor(efl_super(obj, MY_CLASS));
464 efl_canvas_object_type_set(obj, MY_CLASS_NAME_LEGACY); 464 efl_canvas_object_type_set(obj, MY_CLASS_NAME_LEGACY);
465 evas_object_smart_callbacks_descriptions_set(obj, _smart_callbacks); 465 evas_object_smart_callbacks_descriptions_set(obj, _smart_callbacks);
466 elm_interface_atspi_accessible_role_set(obj, ELM_ATSPI_ROLE_PANEL); 466 elm_interface_atspi_accessible_role_set(obj, ELM_ATSPI_ROLE_PANEL);