elementary: fix the macro, thanks gustavo
authoryoz <yoz@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Thu, 3 Nov 2011 11:53:18 +0000 (11:53 +0000)
committeryoz <yoz@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Thu, 3 Nov 2011 11:53:18 +0000 (11:53 +0000)
git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/elementary@64686 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/edje_externals/elm_toolbar.c

index 0701825..aaaf2c1 100644 (file)
@@ -22,7 +22,7 @@ typedef struct _Elm_Params_Toolbar
 
 #define SHRINK_GET(CHOICES, STR)         \
    unsigned int i;                       \
-   for (i = 0; i < sizeof(CHOICES); ++i) \
+   for (i = 0; i < (sizeof(CHOICES)/sizeof(CHOICES[0])); ++i) \
      if (!strcmp(STR, CHOICES[i]))       \
        return i;