Enlightenment CVS committal Author : lordchaos Project : e17 Module : libs/ewl
Dir : e17/libs/ewl/src/lib Modified Files: ewl_iconbox.c Log Message: * Oops - it appears sometimes we get a negative height value from textblock. Stop trying to set the widget height to - =================================================================== RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/lib/ewl_iconbox.c,v retrieving revision 1.73 retrieving revision 1.74 diff -u -3 -r1.73 -r1.74 --- ewl_iconbox.c 16 Nov 2005 03:54:07 -0000 1.73 +++ ewl_iconbox.c 16 Nov 2005 07:51:21 -0000 1.74 @@ -19,9 +19,9 @@ void ewl_iconbox_icon_floater_resize_cb(Ewl_Widget *w, void *ev_data, void *user_data) { Ewl_IconBox_Icon* icon = EWL_ICONBOX_ICON(user_data); + int height = ewl_iconbox_icon_label_height_calculate(EWL_ICONBOX_ICON(icon)); - - ewl_object_custom_h_set(EWL_OBJECT(icon->floater),ewl_iconbox_icon_label_height_calculate(EWL_ICONBOX_ICON(icon)) ); + if (height >0) ewl_object_custom_h_set(EWL_OBJECT(icon->floater), height); //printf("Resized floater to EWL_TEXT(%d)-TEXTBLOCK(%d) %d\n", CURRENT_H(icon->w_label), hh, height); } ------------------------------------------------------- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs