Enlightenment CVS committal

Author  : handyande
Project : e17
Module  : apps/examine

Dir     : e17/apps/examine/src


Modified Files:
        examine.c examine_client.c 


Log Message:
Actually highlight the current theme...
===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/examine/src/examine.c,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -3 -r1.14 -r1.15
--- examine.c   23 May 2004 16:05:33 -0000      1.14
+++ examine.c   25 May 2004 17:01:56 -0000      1.15
@@ -173,7 +173,7 @@
 cb_choose_theme(Ewl_Widget * w, void *ev_data, void *user_data)
 {
   examine_prop   *change;
-  char           *theme, *ext;
+  char           *theme, *ext, *bugfix;
   Ewl_Widget     *sibling;
 
   change = (examine_prop *) user_data;
@@ -183,9 +183,12 @@
   ewl_container_child_iterate_begin(EWL_CONTAINER(w->parent));
   while (sibling = ewl_container_next_child(EWL_CONTAINER(w->parent))) {
     sibling = EWL_WIDGET(EWL_CONTAINER(sibling)->redirect);
+    bugfix = ewl_text_text_get(EWL_TEXT(sibling));
     if (strcmp(EWL_TEXT(sibling)->text, theme))
       ewl_text_color_set(EWL_TEXT(sibling), 0, 0, 0, 0xFF);
-    ewl_text_color_set(EWL_TEXT(sibling), 0xFF, 0, 0, 0xFF);
+    else
+      ewl_text_color_set(EWL_TEXT(sibling), 0xFF, 0, 0, 0xFF);
+    ewl_text_text_set(EWL_TEXT(sibling), bugfix);
   }
 
   if (change->value.ptr)
===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/examine/src/examine_client.c,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -3 -r1.11 -r1.12
--- examine_client.c    23 May 2004 16:05:33 -0000      1.11
+++ examine_client.c    25 May 2004 17:02:02 -0000      1.12
@@ -396,7 +396,7 @@
 void
 examine_client_get_val_cb(void)
 {
-  char           *ret, *key, *end, *tmp;
+  char           *ret, *key, *end, *tmp, *bugfix;
   int             tmpi;
   float           tmpd;
   examine_prop   *prop;
@@ -444,8 +444,12 @@
     ewl_container_child_iterate_begin(EWL_CONTAINER(prop->w));
     while (sibling = ewl_container_next_child(EWL_CONTAINER(prop->w))) {
       sibling = EWL_WIDGET(EWL_CONTAINER(sibling)->redirect);
-      if (!strcmp(EWL_TEXT(sibling)->text, ret)) 
+      bugfix = ewl_text_text_get(EWL_TEXT(sibling));
+      if (strcmp(EWL_TEXT(sibling)->text, ret)) 
+        ewl_text_color_set(EWL_TEXT(sibling), 0, 0, 0, 0xFF);
+      else
         ewl_text_color_set(EWL_TEXT(sibling), 0xFF, 0, 0, 0xFF);
+      ewl_text_text_set(EWL_TEXT(sibling), bugfix);
     }
     break;
   default:                     /* PT_STR, PT_RGB */




-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. 
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to