summaryrefslogtreecommitdiff
path: root/src/lib/elementary/elm_dayselector.c
diff options
context:
space:
mode:
authorTom Hacohen <tom@stosb.com>2016-05-17 16:08:28 +0100
committerTom Hacohen <tom@stosb.com>2016-05-17 16:23:23 +0100
commit546ff7bbba788ec834c5608361c0834853f2d5d7 (patch)
tree72f867c3bbb79d0684d0bd2bf9785aa859c3ff7b /src/lib/elementary/elm_dayselector.c
parente9c4e7bf76513f2a2d110b93b3cced36318b6d14 (diff)
Eo: Remove eo_del() and make eo_unref() the replacement.
We used to have eo_del() as the mirrored action to eo_add(). No longer, now you just always eo_unref() to delete an object. This change makes it so the reference of the parent is shared with the reference the programmer has. So eo_parent_set(obj, NULL) can free an object, and so does eo_unref() (even if there is a parent). This means Eo no longer complains if you have a parent during deletion.
Diffstat (limited to 'src/lib/elementary/elm_dayselector.c')
-rw-r--r--src/lib/elementary/elm_dayselector.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/elementary/elm_dayselector.c b/src/lib/elementary/elm_dayselector.c
index 052c4b3..b23d29d 100644
--- a/src/lib/elementary/elm_dayselector.c
+++ b/src/lib/elementary/elm_dayselector.c
@@ -172,7 +172,7 @@ _item_del_cb(void *data,
172 elm_layout_signal_emit(obj, buf, "elm"); 172 elm_layout_signal_emit(obj, buf, "elm");
173 173
174 VIEW(it) = NULL; 174 VIEW(it) = NULL;
175 eo_del(EO_OBJ(it)); 175 eo_unref(EO_OBJ(it));
176 176
177 elm_layout_sizing_eval(obj); 177 elm_layout_sizing_eval(obj);
178 break; 178 break;
@@ -258,7 +258,7 @@ _elm_dayselector_efl_container_content_set(Eo *obj, Elm_Dayselector_Data *sd, co
258 int_ret = efl_content_set(eo_super(obj, MY_CLASS), buf, content); 258 int_ret = efl_content_set(eo_super(obj, MY_CLASS), buf, content);
259 if (!int_ret) 259 if (!int_ret)
260 { 260 {
261 eo_del(eo_it); 261 eo_unref(eo_it);
262 return EINA_FALSE; 262 return EINA_FALSE;
263 } 263 }
264 264
@@ -334,7 +334,7 @@ _elm_dayselector_efl_container_content_unset(Eo *obj, Elm_Dayselector_Data *sd,
334 elm_layout_signal_emit(obj, buf, "elm"); 334 elm_layout_signal_emit(obj, buf, "elm");
335 335
336 VIEW(it) = NULL; 336 VIEW(it) = NULL;
337 eo_del(EO_OBJ(it)); 337 eo_unref(EO_OBJ(it));
338 338
339 elm_layout_sizing_eval(obj); 339 elm_layout_sizing_eval(obj);
340 340
@@ -441,7 +441,7 @@ _elm_dayselector_evas_object_smart_del(Eo *obj, Elm_Dayselector_Data *sd)
441 { 441 {
442 sd->items = eina_list_remove(sd->items, it); 442 sd->items = eina_list_remove(sd->items, it);
443 eina_stringshare_del(it->day_style); 443 eina_stringshare_del(it->day_style);
444 eo_del(EO_OBJ(it)); 444 eo_unref(EO_OBJ(it));
445 } 445 }
446 446
447 /* handles freeing sd */ 447 /* handles freeing sd */