Enlightenment CVS committal Author : rbdpngn Project : e17 Module : libs/ewl
Dir : e17/libs/ewl/src/lib Modified Files: ewl_overlay.c Log Message: Fix the configure callback to use the same sizing as calced by the show callback. =================================================================== RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/lib/ewl_overlay.c,v retrieving revision 1.8 retrieving revision 1.9 diff -u -3 -r1.8 -r1.9 --- ewl_overlay.c 25 Oct 2005 00:50:18 -0000 1.8 +++ ewl_overlay.c 12 Jan 2006 06:28:36 -0000 1.9 @@ -89,10 +89,10 @@ * fill policy. Don't add the TOP and LEFT insets since * they've already been accounted for. */ - width = CURRENT_W(w) + CURRENT_X(w); - width -= ewl_object_current_x_get(child); - height = CURRENT_H(w) + CURRENT_Y(w); - height -= ewl_object_current_y_get(child); + width = ewl_object_current_x_get(child) + CURRENT_W(w); + width -= CURRENT_X(w); + height = ewl_object_current_y_get(child) + CURRENT_H(w); + height -= CURRENT_Y(w); ewl_object_size_request(child, width, height); } @@ -116,8 +116,9 @@ if (size > PREFERRED_W(o)) ewl_object_preferred_inner_w_set(EWL_OBJECT(o), size); - size = ewl_object_current_y_get(EWL_OBJECT(child)) + - ewl_object_preferred_h_get(EWL_OBJECT(child)) - CURRENT_Y(o); + size = ewl_object_current_y_get(EWL_OBJECT(child)); + size += ewl_object_preferred_h_get(EWL_OBJECT(child)); + size -= CURRENT_Y(o); if (size > PREFERRED_H(o)) ewl_object_preferred_inner_h_set(EWL_OBJECT(o), size); ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs