On Sun, 30 Dec 2012 02:53:30 -0800
"Enlightenment SVN" <[email protected]> wrote:

> Log:
> oh this was always broken - mh simply was never set and being used...
>   until the 2nd loop. by then it ws too lae as ms was screwed.
>   
>   
> 
> Author:       raster
> Date:         2012-12-30 02:53:29 -0800 (Sun, 30 Dec 2012)
> New Revision: 81895
> Trac:         http://trac.enlightenment.org/e/changeset/81895
> 
> Modified:
>   trunk/e/src/bin/e_menu.c 
> 
> Modified: trunk/e/src/bin/e_menu.c
> ===================================================================
> --- trunk/e/src/bin/e_menu.c  2012-12-30 06:14:36 UTC (rev 81894)
> +++ trunk/e/src/bin/e_menu.c  2012-12-30 10:53:29 UTC (rev 81895)
> @@ -1792,7 +1792,7 @@
>  {
>     Eina_List *l;
>     E_Menu_Item *mi;
> -   Evas_Coord bw, bh, mw, mh;
> +   Evas_Coord bw, bh, mw = 0, mh = 0;
>     int toggles_on = 0;
>     int icons_on = 0;
>     int labels_on = 0;
> @@ -1873,14 +1873,13 @@
>     if (min_h * eina_list_count(m->items) >= (unsigned int)m->zone->h)
>       {
>          e_zone_useful_geometry_get(m->zone, NULL, NULL, NULL, &zh);
> -        maxh = zh * 2;
> +        maxh = zh * 4;
>          if (maxh > 30000) maxh = 30000; // 32k x 32k mx coord limit for wins
>          max_items = (maxh / min_h) - 1;
>       }
>     EINA_LIST_FOREACH(m->items, l, mi)
>       {
> -        if ((cur_items >= max_items) ||
> -            (maxh && ((ms + (2 * mh) >= maxh) || (ms + (2 * mi->separator_h) 
> >= maxh))))
> +        if (cur_items >= max_items)
>            {
>               _e_menu_item_unrealize(mi);
>               continue;
> 
> 

success!

------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnmore_123012
_______________________________________________
enlightenment-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to