fixed sorry I'm really blind. I wasn't looking into the macro. Sorry !

2011/11/3 Carsten Haitzler <ras...@rasterman.com>

> On Tue, 1 Nov 2011 15:52:32 -0200 Gustavo Sverzut Barbieri
> <barbi...@profusion.mobi> said:
>
> > On Mon, Oct 31, 2011 at 12:41 PM, Enlightenment SVN
> > <no-re...@enlightenment.org> wrote:
> > > Log:
> > > elementary: more option in edje for elm_toolbar
> > >
> > > Author:       yoz
> > > Date:         2011-10-31 07:41:12 -0700 (Mon, 31 Oct 2011)
> > > New Revision: 64563
> > > Trac:         http://trac.enlightenment.org/e/changeset/64563
> > >
> > > Modified:
> > >  trunk/elementary/src/edje_externals/elm_toolbar.c
> > >
> > > Modified: trunk/elementary/src/edje_externals/elm_toolbar.c
> > > ===================================================================
> > > --- trunk/elementary/src/edje_externals/elm_toolbar.c   2011-10-31
> 14:36:49
> > > UTC (rev 64562) +++ trunk/elementary/src/edje_externals/elm_toolbar.c
> > > 2011-10-31 14:41:12 UTC (rev 64563) @@ -1,3 +1,5 @@
> > > +#include <assert.h>
> > > +
> > >  #include "private.h"
> > >
> > >  typedef struct _Elm_Params_Toolbar
> > > @@ -6,13 +8,41 @@
> > >    int icon_size;
> > >    Eina_Bool icon_size_exists:1;
> > >    double align;
> > > +   const char *shrink_mode;
> > >    Eina_Bool align_exists:1;
> > > +   Eina_Bool always_select:1;
> > > +   Eina_Bool always_select_exists:1;
> > > +   Eina_Bool no_select:1;
> > > +   Eina_Bool no_select_exists:1;
> > > +   Eina_Bool horizontal:1;
> > > +   Eina_Bool horizontal_exists:1;
> > > +   Eina_Bool homogeneous:1;
> > > +   Eina_Bool homogeneous_exists:1;
> > >  } Elm_Params_Toolbar;
> > >
> > > +#define SHRINK_GET(CHOICES, STR)         \
> > > +   unsigned int i;                       \
> > > +   for (i = 0; i < sizeof(CHOICES); ++i) \
> >
> > bug. This is counting the size in bytes, or NUMBER_ELEMENTS *
> > sizeof(char*) in your usage.
>
> yup. definite bug. fixed it.
>
> --
> ------------- Codito, ergo sum - "I code, therefore I am" --------------
> The Rasterman (Carsten Haitzler)    ras...@rasterman.com
>
>
>
> ------------------------------------------------------------------------------
> RSA(R) Conference 2012
> Save $700 by Nov 18
> Register now
> http://p.sf.net/sfu/rsa-sfdev2dev1
> _______________________________________________
> enlightenment-devel mailing list
> enlightenment-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
>



-- 
Michaƫl Bouchaud
------------------------------------------------------------------------------
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to