Enlightenment CVS committal
Author : lordchaos
Project : e17
Module : libs/ewl
Dir : e17/libs/ewl/src/lib
Modified Files:
ewl_iconbox.c
Log Message:
* Avoid the random text evas problem for now, and fix an unoptimal deselect
issue
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/lib/ewl_iconbox.c,v
retrieving revision 1.82
retrieving revision 1.83
diff -u -3 -r1.82 -r1.83
--- ewl_iconbox.c 24 Nov 2005 12:01:20 -0000 1.82
+++ ewl_iconbox.c 24 Nov 2005 22:12:29 -0000 1.83
@@ -665,16 +665,18 @@
void ewl_iconbox_icon_deselect(Ewl_IconBox_Icon *ib)
{
- ib->selected = 0;
+ if (ib->selected) {
+ ib->selected = 0;
- /*If we have a compressed label, set it now*/
- if (ib->label_compressed) {
- ewl_iconbox_icon_label_set(ib, ib->label_compressed);
+ /*If we have a compressed label, set it now*/
+ if (ib->label_compressed) {
+ 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,ewl_text_length_get(EWL_TEXT(ib->w_label)) );
+ ewl_widget_color_set(EWL_WIDGET(ib), 255,255,255,255);
}
- ewl_text_cursor_position_set(EWL_TEXT(ib->w_label), 0);
- ewl_text_color_apply(EWL_TEXT(ib->w_label), 0, 0, 0,
255,ewl_text_length_get(EWL_TEXT(ib->w_label)) );
- ewl_widget_color_set(EWL_WIDGET(ib), 255,255,255,255);
}
-------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs