Thanks for the bug report. Probably need a slight variation on what I committed, as backing it out leads to other issues when padding is set on an image widget.
On Sat, 26 Mar 2005 00:05:03 -0600, nick hughart <[EMAIL PROTECTED]> wrote: > This fix has caused the stock buttons to be huge. Might need to back > this one out or change how the stock buttons work. > > On Fri, 25 Mar 2005 21:54:33 -0800, > enlightenment-cvs@lists.sourceforge.net > <enlightenment-cvs@lists.sourceforge.net> wrote: > > Enlightenment CVS committal > > > > Author : rbdpngn > > Project : e17 > > Module : libs/ewl > > > > Dir : e17/libs/ewl/src/lib > > > > Modified Files: > > ewl_image.c > > > > Log Message: > > Use the inner size for calculating and setting the preferred size for the > > image widget. > > > > =================================================================== > > RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/lib/ewl_image.c,v > > retrieving revision 1.3 > > retrieving revision 1.4 > > diff -u -3 -r1.3 -r1.4 > > --- ewl_image.c 26 Mar 2005 05:25:20 -0000 1.3 > > +++ ewl_image.c 26 Mar 2005 05:54:33 -0000 1.4 > > @@ -322,14 +322,14 @@ > > if (!i->oh) > > i->oh = 256; > > > > - if (ewl_object_preferred_w_get(EWL_OBJECT(i)) == > > EWL_OBJECT_MIN_SIZE) { > > + if (!ewl_object_preferred_inner_w_get(EWL_OBJECT(i))) { > > ewl_object_preferred_inner_w_set(EWL_OBJECT(i), i->ow); > > ewl_object_preferred_inner_h_set(EWL_OBJECT(i), i->oh); > > ewl_image_scale(i, i->sw, i->sh); > > } > > else > > - ewl_image_scale_to(i, > > ewl_object_preferred_w_get(EWL_OBJECT(i)), > > - ewl_object_preferred_h_get(EWL_OBJECT(i))); > > + ewl_image_scale_to(i, > > ewl_object_preferred_inner_w_get(EWL_OBJECT(i)), > > + > > ewl_object_preferred_inner_h_get(EWL_OBJECT(i))); > > > > DLEAVE_FUNCTION(DLEVEL_STABLE); > > } > > > > ------------------------------------------------------- > > SF email is sponsored by - The IT Product Guide > > Read honest & candid reviews on hundreds of IT Products from real users. > > Discover which products truly live up to the hype. Start reading now. > > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > > _______________________________________________ > > enlightenment-cvs mailing list > > enlightenment-cvs@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs > > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > _______________________________________________ > enlightenment-devel mailing list > enlightenment-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/enlightenment-devel > ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel