Enlightenment CVS committal Author : lordchaos Project : e17 Module : libs/ewl
Dir : e17/libs/ewl/src/lib Modified Files: ewl_iconbox.c Log Message: * Make iconbox floater sizing work in light of the recent text changes =================================================================== RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/lib/ewl_iconbox.c,v retrieving revision 1.84 retrieving revision 1.85 diff -u -3 -r1.84 -r1.85 --- ewl_iconbox.c 27 Nov 2005 09:44:14 -0000 1.84 +++ ewl_iconbox.c 29 Nov 2005 07:05:51 -0000 1.85 @@ -17,11 +17,12 @@ } -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)); +void ewl_iconbox_icon_floater_resize(Ewl_IconBox_Icon *icon) { + int height = ewl_iconbox_icon_label_height_calculate(icon); - if (height >0) { ewl_object_custom_h_set(EWL_OBJECT(icon->floater), height); } + 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); } @@ -482,6 +483,8 @@ ewl_text_text_set(EWL_TEXT(icon->w_label), icon->label); } + + ewl_iconbox_icon_floater_resize(icon); } @@ -782,10 +785,6 @@ /*----------------------*/ - ewl_callback_append(EWL_ICONBOX_ICON(ib)->w_label, EWL_CALLBACK_VALUE_CHANGED, ewl_iconbox_icon_floater_resize_cb, ib); - - - /*Show*/ ewl_widget_show(EWL_ICONBOX_ICON(ib)->image); ewl_widget_show(EWL_ICONBOX_ICON(ib)->w_label); ------------------------------------------------------- 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