Enlightenment CVS committal

Author  : lordchaos
Project : e17
Module  : libs/ewl

Dir     : e17/libs/ewl/src/lib


Modified Files:
        ewl_iconbox.c 


Log Message:
Make icon selection a bit more obvious

===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/lib/ewl_iconbox.c,v
retrieving revision 1.63
retrieving revision 1.64
diff -u -3 -r1.63 -r1.64
--- ewl_iconbox.c       4 Nov 2005 03:54:43 -0000       1.63
+++ ewl_iconbox.c       4 Nov 2005 12:34:38 -0000       1.64
@@ -593,17 +593,14 @@
                ewl_widget_hide(EWL_WIDGET(ib->icon_box_parent->entry_floater));
                ewl_iconbox_icon_label_set(ib, ib->label);
 
-               ewl_text_bg_color_set(EWL_TEXT(ib->w_label), 0, 0, 255, 255);
                ewl_text_cursor_position_set(EWL_TEXT(ib->w_label), 0);
                ewl_text_color_apply(EWL_TEXT(ib->w_label), 0, 0, 255, 255, 
ewl_text_length_get(EWL_TEXT(ib->w_label)));
+               ewl_widget_color_set(EWL_WIDGET(ib), 216,176,88,70);
+               
        }
 
-
-       
-       /*TODO allow multiselect, as per a "select policy" set on widget 
create/init*/
        ib->selected = 1;
 
-       /*printf("Setting color..\n");*/
        
 }
 
@@ -611,7 +608,6 @@
 {
        char* text;     
        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*/
@@ -619,9 +615,8 @@
                ewl_iconbox_icon_label_set(ib, ib->label_compressed);
        }
        ewl_text_cursor_position_set(EWL_TEXT(ib->w_label), 0);
-       text = ewl_text_text_get(EWL_TEXT(ib->w_label));
-       ewl_text_color_apply(EWL_TEXT(ib->w_label), 0, 0, 0, 255, strlen(text));
-       free(text);
+       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);
 
 }
 




-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to