summaryrefslogtreecommitdiff
path: root/src/lib/ecore/ecore_idle_enterer.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/ecore/ecore_idle_enterer.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/ecore/ecore_idle_enterer.c')
-rw-r--r--src/lib/ecore/ecore_idle_enterer.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/lib/ecore/ecore_idle_enterer.c b/src/lib/ecore/ecore_idle_enterer.c
index f6d5b99..038b5c9 100644
--- a/src/lib/ecore/ecore_idle_enterer.c
+++ b/src/lib/ecore/ecore_idle_enterer.c
@@ -64,7 +64,6 @@ ecore_idle_enterer_add(Ecore_Task_Cb func,
64{ 64{
65 Ecore_Idle_Enterer *ie = NULL; 65 Ecore_Idle_Enterer *ie = NULL;
66 ie = eo_add(MY_CLASS, _ecore_parent, ecore_idle_enterer_after_constructor(func, data)); 66 ie = eo_add(MY_CLASS, _ecore_parent, ecore_idle_enterer_after_constructor(func, data));
67 eo_unref(ie);
68 return ie; 67 return ie;
69} 68}
70 69
@@ -86,7 +85,6 @@ ecore_idle_enterer_before_add(Ecore_Task_Cb func,
86{ 85{
87 Ecore_Idle_Enterer *ie = NULL; 86 Ecore_Idle_Enterer *ie = NULL;
88 ie = eo_add(MY_CLASS, _ecore_parent, ecore_idle_enterer_before_constructor(func, data)); 87 ie = eo_add(MY_CLASS, _ecore_parent, ecore_idle_enterer_before_constructor(func, data));
89 eo_unref(ie);
90 return ie; 88 return ie;
91} 89}
92 90