Enlightenment CVS committal Author : lordchaos Project : e17 Module : libs/ewl
Dir : e17/libs/ewl/src/lib Modified Files: ewl_iconbox.c Log Message: Fixed ewl_iconbox for iconbox_test - auto arrange on resize it temporarily disabled =================================================================== RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/lib/ewl_iconbox.c,v retrieving revision 1.11 retrieving revision 1.12 diff -u -3 -r1.11 -r1.12 --- ewl_iconbox.c 26 Jul 2005 23:39:45 -0000 1.11 +++ ewl_iconbox.c 28 Jul 2005 00:32:09 -0000 1.12 @@ -70,11 +70,12 @@ Ewl_IconBox* ib = EWL_ICONBOX(w); - ewl_iconbox_inner_pane_calculate(EWL_ICONBOX(w)); + if (REALIZED(ib) && VISIBLE(ib)) { ewl_callback_del(EWL_WIDGET(ib), EWL_CALLBACK_CONFIGURE, configure); - ewl_iconbox_icon_arrange(ib); + ewl_iconbox_inner_pane_calculate(EWL_ICONBOX(w)); + /*ewl_iconbox_icon_arrange(ib); */ ewl_callback_append(EWL_WIDGET(ib), EWL_CALLBACK_CONFIGURE, configure, NULL); } } @@ -682,20 +683,21 @@ /*printf("Setting color..\n");*/ - ewl_callback_call(EWL_WIDGET(ib->w_label), EWL_CALLBACK_APPEARANCE_CHANGED); } void ewl_iconbox_icon_deselect(Ewl_IconBox_Icon *ib) { ib->selected = 0; + ewl_text_bg_color_set(EWL_TEXT(ib->w_label), 0, 0, 0, 255); + /*If we have a compressed label, set it now*/ if (ib->label_compressed) { - ewl_text_bg_color_set(EWL_TEXT(ib->w_label), 0, 0, 0, 255); ewl_iconbox_icon_label_set(ib, ib->label_compressed); - ewl_text_cursor_position_set(EWL_TEXT(ib->w_label), 0); - ewl_text_color_apply(EWL_TEXT(ib->w_label), 0, 0, 0, 255, strlen(ib->label_compressed)); } + ewl_text_cursor_position_set(EWL_TEXT(ib->w_label), 0); + ewl_text_color_apply(EWL_TEXT(ib->w_label), 0, 0, 0, 255, strlen(ewl_text_text_get(EWL_TEXT(ib->w_label)))); + } void ewl_iconbox_deselect_all(Ewl_IconBox* ib) { ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs