Enlightenment CVS committal

Author  : rephorm
Project : e17
Module  : apps/e

Dir     : e17/apps/e/src/bin


Modified Files:
        e_widget_check.c 


Log Message:

the check theme shouldn't need to track state. emit the proper signals whenever 
it changes.

===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/e/src/bin/e_widget_check.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -3 -r1.7 -r1.8
--- e_widget_check.c    16 Oct 2005 07:32:11 -0000      1.7
+++ e_widget_check.c    20 Nov 2005 21:20:09 -0000      1.8
@@ -94,8 +94,16 @@
    wd = e_widget_data_get(obj);
    if (wd->valptr)
      {
-       if (*(wd->valptr) == 0) *(wd->valptr) = 1;
-       else *(wd->valptr) = 0;
+       if (*(wd->valptr) == 0) 
+         {
+            *(wd->valptr) = 1;
+            edje_object_signal_emit(wd->o_check, "toggle_on", "");
+         }
+       else 
+         {
+            *(wd->valptr) = 0;
+            edje_object_signal_emit(wd->o_check, "toggle_off", "");
+         }
      }
 }
 
@@ -106,11 +114,6 @@
    
    wd = e_widget_data_get(obj);
    _e_wid_do(obj);
-   if (wd->valptr)
-     {
-       if (*(wd->valptr)) edje_object_signal_emit(wd->o_check, "toggle_on", 
"");
-       else edje_object_signal_emit(wd->o_check, "toggle_off", "");
-     }
 }
 
 static void




-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.  Get Certified Today
Register for a JBoss Training Course.  Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to