From 04cde392cabbb57ff79f0dd7090810b4fb6c8d8f Mon Sep 17 00:00:00 2001 From: sndev Date: Mon, 8 May 2006 11:47:20 +0000 Subject: [PATCH] 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 --- src/bin/e_widget_radio.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/bin/e_widget_radio.c b/src/bin/e_widget_radio.c index b89f42114..069820c04 100644 --- a/src/bin/e_widget_radio.c +++ b/src/bin/e_widget_radio.c @@ -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", "");