summaryrefslogtreecommitdiff
path: root/src/lib/evas/canvas/evas_object_grid.c
diff options
context:
space:
mode:
authorTom Hacohen <tom@stosb.com>2014-09-25 15:51:17 +0100
committerTom Hacohen <tom@stosb.com>2014-09-25 17:38:45 +0100
commita7560dbc61953c3652780f232e38adbd2d711972 (patch)
tree5883eada4cad354a8e16cbacbad0b24660884fcf /src/lib/evas/canvas/evas_object_grid.c
parent2bc462f55b2e0d0b4bee6998f91b611be4ee1d2d (diff)
Eo: Change eo_add/del/unref behaviour.
Before this change eo_add() used to create an object with 1 ref, and if the object had a parent, a second ref. Now, eo_add() always returns an object with 1 ref, and eo_add_ref() preserves the old behaviour (for bindings). eo_unref now un-parents if refcount is 0, and eo_del() is an alias for eo_unref (will change to be a way to ensure an object is dead and goes to zombie-land even if still refed).
Diffstat (limited to 'src/lib/evas/canvas/evas_object_grid.c')
-rw-r--r--src/lib/evas/canvas/evas_object_grid.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/lib/evas/canvas/evas_object_grid.c b/src/lib/evas/canvas/evas_object_grid.c
index 8d153cd..3e61201 100644
--- a/src/lib/evas/canvas/evas_object_grid.c
+++ b/src/lib/evas/canvas/evas_object_grid.c
@@ -258,7 +258,6 @@ EAPI Evas_Object *
258evas_object_grid_add(Evas *evas) 258evas_object_grid_add(Evas *evas)
259{ 259{
260 Evas_Object *obj = eo_add(MY_CLASS, evas); 260 Evas_Object *obj = eo_add(MY_CLASS, evas);
261 eo_unref(obj);
262 return obj; 261 return obj;
263} 262}
264 263