Enlightenment CVS committal
Author : lordchaos
Project : e17
Module : libs/ewl
Dir : e17/libs/ewl/src/lib
Modified Files:
ewl_iconbox.c
Log Message:
Make an icon resize properly when we reset its image
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/lib/ewl_iconbox.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -3 -r1.6 -r1.7
--- ewl_iconbox.c 17 Jul 2005 23:06:02 -0000 1.6
+++ ewl_iconbox.c 18 Jul 2005 12:35:10 -0000 1.7
@@ -684,5 +684,14 @@
void ewl_iconbox_icon_image_set(Ewl_IconBox_Icon* icon, char* filename) {
+ int iw,ih,lw,lh;
+
ewl_image_file_set(EWL_IMAGE(icon->image), filename, NULL);
+
+ /*Make sure we're not too small now */
+ /*Shouldn't the floater auto-resize?*/
+
+ ewl_object_current_size_get(EWL_OBJECT(icon->image), &iw,&ih);
+ ewl_object_current_size_get(EWL_BORDER(icon)->label, &lw, &lh); /*
Shouldn't access this directly, is there another way? */
+ ewl_object_minimum_size_set(EWL_OBJECT(icon->floater), iw, ih+lh);
}
-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs