Enlightenment CVS committal
Author : lordchaos
Project : e17
Module : libs/ewl
Dir : e17/libs/ewl/src/lib
Modified Files:
ewl_iconbox.c
Log Message:
. Layout changes for ewl_iconbox
. ewl_text_color_set doesn't seem to be working -> changed to
ewl_widget_color_set for now
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/lib/ewl_iconbox.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -3 -r1.2 -r1.3
--- ewl_iconbox.c 11 Jul 2005 01:33:59 -0000 1.2
+++ ewl_iconbox.c 11 Jul 2005 12:42:23 -0000 1.3
@@ -94,6 +94,12 @@
ewl_object_custom_size_set(EWL_OBJECT(ib->ewl_iconbox_pane_inner), nw, nh);
/*printf ("Grew iconbox to: %d:%d\n", nw, nh);*/
}
+
+ if (REALIZED(ib) && VISIBLE(ib)) {
+ ewl_callback_del(EWL_WIDGET(ib), EWL_CALLBACK_CONFIGURE,
configure);
+ ewl_iconbox_icon_arrange(ib);
+ ewl_callback_append(EWL_WIDGET(ib), EWL_CALLBACK_CONFIGURE,
configure, NULL);
+ }
}
int ewl_iconbox_icon_init(Ewl_IconBox_Icon* icon) {
@@ -282,7 +288,7 @@
/*printf ("Entering the arrange..\n");*/
/* Recalc inner pane size */
- ewl_iconbox_inner_pane_calculate(ib);
+ /*ewl_iconbox_inner_pane_calculate(ib);*/
/*printf ("Ewl_IconBox -> Arranging icons\n");*/
@@ -472,13 +478,15 @@
}
ib->selected = 1;
- ewl_text_color_set(EWL_TEXT(EWL_BORDER(ib)->label), 0,0,255,255);
+
+ /*printf("Setting color..\n");*/
+ ewl_widget_color_set(EWL_WIDGET(EWL_BORDER(ib)->label), 140,0,255,128);
ewl_callback_call(EWL_WIDGET(EWL_BORDER(ib)->label),
EWL_CALLBACK_APPEARANCE_CHANGED);
}
void ewl_iconbox_icon_deselect(Ewl_IconBox_Icon *ib) {
ib->selected = 0;
- ewl_text_color_set(EWL_TEXT(EWL_BORDER(ib)->label), 0,0,0,255);
+ ewl_widget_color_set(EWL_WIDGET(EWL_BORDER(ib)->label), 0,0,0,255);
}
-------------------------------------------------------
This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening
July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual
core and dual graphics technology at this free one hour event hosted by HP,
AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs