Enlightenment CVS committal Author : dj2 Project : e17 Module : libs/ewl
Dir : e17/libs/ewl/src/lib Modified Files: ewl_button.c Log Message: - fix up test case warnings =================================================================== RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_button.c,v retrieving revision 1.53 retrieving revision 1.54 diff -u -3 -r1.53 -r1.54 --- ewl_button.c 23 Aug 2007 05:26:50 -0000 1.53 +++ ewl_button.c 8 Nov 2007 02:21:09 -0000 1.54 @@ -219,7 +219,8 @@ DRETURN(DLEVEL_STABLE); } - if (!b->image_object) { + if (!b->image_object) + { Ewl_Container *redir; /* @@ -300,12 +301,17 @@ void ewl_button_image_size_get(Ewl_Button *b, int *width, int *height) { + int w = 0, h = 0; + DENTER_FUNCTION(DLEVEL_STABLE); DCHECK_PARAM_PTR("b", b); DCHECK_TYPE("b", b, EWL_BUTTON_TYPE); - if (!b->image_object) - ewl_image_size_get(EWL_IMAGE(b->image_object), width, height); + if (b->image_object) + ewl_image_size_get(EWL_IMAGE(b->image_object), &w, &h); + + if (width) *width = w; + if (height) *height = h; DLEAVE_FUNCTION(DLEVEL_STABLE); } ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs