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.


SVN revision: 22486
This commit is contained in:
sndev 2006-05-08 11:47:20 +00:00 committed by sndev
parent 007469aa9a
commit 04cde392ca
1 changed files with 4 additions and 4 deletions

View File

@ -90,23 +90,23 @@ e_widget_radio_toggle_set(Evas_Object *obj, int toggle)
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", "");