Enlightenment CVS committal

Author  : sndev
Project : e17
Module  : apps/e

Dir     : e17/apps/e/src/bin


Modified Files:
        e_widget_radio.c 


Log Message:

It seems that if all the radios in the group are toggled off, then it is
not possible to toggle on any radio in that group :-\. This happens
because the variable toggle==0 when all the radios are toggled off. Consequently
the "toggle on" code is not reachable.

If the toggle variable is removed, then everything seems to work fine.

===================================================================
RCS file: /cvs/e/e17/apps/e/src/bin/e_widget_radio.c,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -3 -r1.11 -r1.12
--- e_widget_radio.c    7 May 2006 09:49:37 -0000       1.11
+++ e_widget_radio.c    8 May 2006 11:47:20 -0000       1.12
@@ -90,23 +90,23 @@
    if (toggle)
      {
        Evas_List *l;
-       int toggled = 0;
+       //int toggled = 0;
        
        for (l = wd->group->radios; l; l = l->next)
          {
-            wd = e_widget_data_get(l->data);
+            //wd = e_widget_data_get(l->data);
             if (l->data != obj)
               {
                  wd = e_widget_data_get(l->data);
                  if (wd->valnum == *(wd->group->valptr))
                    {
                       edje_object_signal_emit(wd->o_radio, "toggle_off", "");
-                      toggled = 1;
+                      //toggled = 1;
                       break;
                    }
               }
          }
-       if (!toggled) return;
+       //if (!toggled) return;
        wd = e_widget_data_get(obj);
        *(wd->group->valptr) = wd->valnum;
        edje_object_signal_emit(wd->o_radio, "toggle_on", "");




-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to