summaryrefslogtreecommitdiff
path: root/src/lib/ecore/ecore_idle_enterer.c
diff options
context:
space:
mode:
authorTom Hacohen <tom@stosb.com>2014-09-25 10:24:27 +0100
committerTom Hacohen <tom@stosb.com>2014-09-25 10:30:56 +0100
commit6846978ebd027fff1de57d526071517243354354 (patch)
tree6ff7651990561224738e332b2ccd3fa84e47dc4f /src/lib/ecore/ecore_idle_enterer.c
parent8204212f36d936f951accda61fd2f7f329390b71 (diff)
Eo: Get rid of eo_add_custom.
We decided to deprecate this one in favour of setting thing in the construction between the constructor and the finalizer.
Diffstat (limited to 'src/lib/ecore/ecore_idle_enterer.c')
-rw-r--r--src/lib/ecore/ecore_idle_enterer.c12
1 files changed, 2 insertions, 10 deletions
diff --git a/src/lib/ecore/ecore_idle_enterer.c b/src/lib/ecore/ecore_idle_enterer.c
index 5be4f7a..f6d5b99 100644
--- a/src/lib/ecore/ecore_idle_enterer.c
+++ b/src/lib/ecore/ecore_idle_enterer.c
@@ -44,7 +44,6 @@ _ecore_idle_enterer_add(Ecore_Idle_Enterer *obj,
44 } 44 }
45 45
46 ie->obj = obj; 46 ie->obj = obj;
47 eo_do_super(obj, MY_CLASS, eo_constructor());
48 eo_manual_free_set(obj, EINA_TRUE); 47 eo_manual_free_set(obj, EINA_TRUE);
49 48
50 if (!func) 49 if (!func)
@@ -64,7 +63,7 @@ ecore_idle_enterer_add(Ecore_Task_Cb func,
64 const void *data) 63 const void *data)
65{ 64{
66 Ecore_Idle_Enterer *ie = NULL; 65 Ecore_Idle_Enterer *ie = NULL;
67 ie = eo_add_custom(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));
68 eo_unref(ie); 67 eo_unref(ie);
69 return ie; 68 return ie;
70} 69}
@@ -86,7 +85,7 @@ ecore_idle_enterer_before_add(Ecore_Task_Cb func,
86 const void *data) 85 const void *data)
87{ 86{
88 Ecore_Idle_Enterer *ie = NULL; 87 Ecore_Idle_Enterer *ie = NULL;
89 ie = eo_add_custom(MY_CLASS, _ecore_parent, ecore_idle_enterer_before_constructor(func, data)); 88 ie = eo_add(MY_CLASS, _ecore_parent, ecore_idle_enterer_before_constructor(func, data));
90 eo_unref(ie); 89 eo_unref(ie);
91 return ie; 90 return ie;
92} 91}
@@ -103,13 +102,6 @@ unlock:
103 _ecore_unlock(); 102 _ecore_unlock();
104} 103}
105 104
106EOLIAN static void
107_ecore_idle_enterer_eo_base_constructor(Eo *obj, Ecore_Idle_Enterer_Data *_pd EINA_UNUSED)
108{
109 eo_error_set(obj);
110 ERR("only custom constructor can be used with '%s' class", MY_CLASS_NAME);
111}
112
113EAPI void * 105EAPI void *
114ecore_idle_enterer_del(Ecore_Idle_Enterer *idle_enterer) 106ecore_idle_enterer_del(Ecore_Idle_Enterer *idle_enterer)
115{ 107{