Enlightenment CVS committal
Author : rbdpngn
Project : e17
Module : libs/ewl
Dir : e17/libs/ewl/src/lib
Modified Files:
ewl_image.c
Log Message:
Recalculate the preferred size after a constraint change.
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/lib/ewl_image.c,v
retrieving revision 1.29
retrieving revision 1.30
diff -u -3 -r1.29 -r1.30
--- ewl_image.c 10 Mar 2006 07:16:27 -0000 1.29
+++ ewl_image.c 13 Mar 2006 16:19:34 -0000 1.30
@@ -226,6 +226,16 @@
DCHECK_TYPE("i", i, EWL_IMAGE_TYPE);
i->cs = size;
+ if (size) {
+ ewl_object_preferred_inner_w_set(EWL_OBJECT(i), size);
+ ewl_object_preferred_inner_h_set(EWL_OBJECT(i), size);
+ }
+ else if (i->sw != 1.0 || i->sh != 1.0) {
+ ewl_image_scale_set(i, i->sw, i->sh);
+ }
+ else if (i->aw != i->ow || i->ah != i->oh) {
+ ewl_image_size_set(i, i->aw, i->ah);
+ }
DLEAVE_FUNCTION(DLEVEL_STABLE);
}
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs