Good! This needs to be done for all elementary widgets. Currently some widgets has that routine.
Thanks. Daniel Juyung Seo (SeoZ) On Mon, Apr 4, 2011 at 1:26 AM, Enlightenment SVN < no-re...@enlightenment.org> wrote: > Log: > elementary/flip - modified to use smart callbacks descriptions table > > > > Author: hermet > Date: 2011-04-03 09:26:25 -0700 (Sun, 03 Apr 2011) > New Revision: 58306 > Trac: http://trac.enlightenment.org/e/changeset/58306 > > Modified: > trunk/elementary/src/lib/elm_flip.c > > Modified: trunk/elementary/src/lib/elm_flip.c > =================================================================== > --- trunk/elementary/src/lib/elm_flip.c 2011-04-03 16:15:21 UTC (rev 58305) > +++ trunk/elementary/src/lib/elm_flip.c 2011-04-03 16:26:25 UTC (rev 58306) > @@ -41,6 +41,13 @@ > > static void _configure(Evas_Object *obj); > > +static const char SIG_ANIMATE_DONE[] = "animate,done"; > + > +static const Evas_Smart_Cb_Description _signals[] = { > + {SIG_ANIMATE_DONE, ""}, > + {NULL, NULL} > +}; > + > static void > _del_hook(Evas_Object *obj) > { > @@ -344,7 +351,7 @@ > wd->animator = NULL; > wd->state = !wd->state; > _configure(obj); > - evas_object_smart_callback_call(obj, "animate,done", NULL); > + evas_object_smart_callback_call(obj, SIG_ANIMATE_DONE, NULL); > return ECORE_CALLBACK_CANCEL; > } > return ECORE_CALLBACK_RENEW; > @@ -449,9 +456,12 @@ > evas_object_event_callback_add(obj, EVAS_CALLBACK_MOVE, _move, NULL); > evas_object_event_callback_add(obj, EVAS_CALLBACK_RESIZE, _resize, > NULL); > > + evas_object_smart_callbacks_descriptions_set(obj, _signals); > + > wd->state = 1; > > _sizing_eval(obj); > + > return obj; > } > > > > > ------------------------------------------------------------------------------ > Create and publish websites with WebMatrix > Use the most popular FREE web apps or write code yourself; > WebMatrix provides all the features you need to develop and > publish your website. http://p.sf.net/sfu/ms-webmatrix-sf > _______________________________________________ > enlightenment-svn mailing list > enlightenment-...@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/enlightenment-svn > ------------------------------------------------------------------------------ Create and publish websites with WebMatrix Use the most popular FREE web apps or write code yourself; WebMatrix provides all the features you need to develop and publish your website. http://p.sf.net/sfu/ms-webmatrix-sf _______________________________________________ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel