diff options
author | tasn <tasn> | 2012-06-10 14:56:20 +0000 |
---|---|---|
committer | tasn <tasn@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33> | 2012-06-10 14:56:20 +0000 |
commit | 269168dbf18716f57881085cfb55e4041fb934df (patch) | |
tree | 20891bdf925dfb3f46c24273a103df9be3fbb873 /src/tests/composite_objects | |
parent | 15e6e430eb31589fe4c41c99a5eaf7fb54b36b21 (diff) | |
download | eobj-269168dbf18716f57881085cfb55e4041fb934df.tar.gz eobj-269168dbf18716f57881085cfb55e4041fb934df.tar.bz2 eobj-269168dbf18716f57881085cfb55e4041fb934df.zip |
Eo composite: Reordered parameters and improved docs.
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/PROTO/eobj@71906 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33
Diffstat (limited to 'src/tests/composite_objects')
-rw-r--r-- | src/tests/composite_objects/comp.c | 2 | ||||
-rw-r--r-- | src/tests/composite_objects/main.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/tests/composite_objects/comp.c b/src/tests/composite_objects/comp.c index 4774974..1f463c2 100644 --- a/src/tests/composite_objects/comp.c +++ b/src/tests/composite_objects/comp.c @@ -24,7 +24,7 @@ _constructor(Eo *obj, void *class_data EINA_UNUSED, va_list *list EINA_UNUSED) eo_do_super(obj, eo_constructor()); Eo *simple = eo_add(SIMPLE_CLASS, obj); - eo_composite_object_attach(obj, simple); + eo_composite_object_attach(simple, obj); eo_do(simple, eo_event_callback_forwarder_add(EV_A_CHANGED, obj)); fail_if(eo_composite_is(obj)); diff --git a/src/tests/composite_objects/main.c b/src/tests/composite_objects/main.c index 2be1b13..36bad0f 100644 --- a/src/tests/composite_objects/main.c +++ b/src/tests/composite_objects/main.c @@ -47,9 +47,9 @@ main(int argc, char *argv[]) fail_if(cb_called); fail_if(!eo_composite_is(simple)); - eo_composite_object_detach(obj, simple); + eo_composite_object_detach(simple, obj); fail_if(eo_composite_is(simple)); - eo_composite_object_attach(obj, simple); + eo_composite_object_attach(simple, obj); fail_if(!eo_composite_is(simple)); eo_unref(simple); |