Thanks I fully forgot the "const".
On Tue, Sep 10, 2013 at 1:47 AM, Daniel Juyung Seo - Enlightenment Git < no-re...@enlightenment.org> wrote: > seoz pushed a commit to branch master. > > commit 6d6f0e1b0b89d790bc68a2eecbbd2a7d64f6e286 > Author: Daniel Juyung Seo <seojuyu...@gmail.com> > Date: Tue Sep 10 13:46:35 2013 +0900 > > elm_table: clean up newly added function elm_table_child_get. > > - moved function position. > - added const to the first parameter. > --- > src/lib/elm_table.c | 20 ++++++++++---------- > src/lib/elm_table_legacy.h | 2 +- > 2 files changed, 11 insertions(+), 11 deletions(-) > > diff --git a/src/lib/elm_table.c b/src/lib/elm_table.c > index c967f4b..93f2c4c 100644 > --- a/src/lib/elm_table.c > +++ b/src/lib/elm_table.c > @@ -403,16 +403,6 @@ elm_table_pack_get(Evas_Object *subobj, > eo_do(obj, elm_obj_table_pack_get(subobj, col, row, colspan, rowspan)); > } > > -EAPI Evas_Object * > -elm_table_child_get(Evas_Object *obj, int col, int row) > -{ > - Evas_Object *ret; > - ELM_TABLE_CHECK(obj) NULL; > - > - eo_do(obj, elm_obj_table_child_get(col, row, &ret)); > - return ret; > -} > - > static void > _pack_get(Eo *obj, void *_pd EINA_UNUSED, va_list *list) > { > @@ -450,6 +440,16 @@ _clear(Eo *obj, void *_pd EINA_UNUSED, va_list *list) > evas_object_table_clear(wd->resize_obj, clear); > } > > +EAPI Evas_Object * > +elm_table_child_get(const Evas_Object *obj, int col, int row) > +{ > + Evas_Object *ret; > + ELM_TABLE_CHECK(obj) NULL; > + > + eo_do((Eo *)obj, elm_obj_table_child_get(col, row, &ret)); > + return ret; > +} > + > static void > _child_get(Eo *obj, void *_pd EINA_UNUSED, va_list *list) > { > diff --git a/src/lib/elm_table_legacy.h b/src/lib/elm_table_legacy.h > index 0f5d160..77dda3a 100644 > --- a/src/lib/elm_table_legacy.h > +++ b/src/lib/elm_table_legacy.h > @@ -135,4 +135,4 @@ EAPI void elm_table_clear(Evas_Object *obj, > Eina_Bool clear); > * > * @return Child of object if find if not return NULL. > */ > -EAPI Evas_Object *elm_table_child_get(Evas_Object *obj, int col, int row); > +EAPI Evas_Object *elm_table_child_get(const Evas_Object *obj, int col, > int row); > > -- > > > ------------------------------------------------------------------------------ > How ServiceNow helps IT people transform IT departments: > 1. Consolidate legacy IT systems to a single system of record for IT > 2. Standardize and globalize service processes across IT > 3. Implement zero-touch automation to replace manual, redundant tasks > http://pubads.g.doubleclick.net/gampad/clk?id=51271111&iu=/4140/ostg.clktrk > ------------------------------------------------------------------------------ How ServiceNow helps IT people transform IT departments: 1. Consolidate legacy IT systems to a single system of record for IT 2. Standardize and globalize service processes across IT 3. Implement zero-touch automation to replace manual, redundant tasks http://pubads.g.doubleclick.net/gampad/clk?id=51271111&iu=/4140/ostg.clktrk _______________________________________________ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel