From 7badcc8fe9923a0d887bf4229e1ec958251ec465 Mon Sep 17 00:00:00 2001 From: Carsten Haitzler Date: Sun, 16 Dec 2012 14:06:10 +0000 Subject: [PATCH] radios - if none is selected... the one u select gets selected. :) SVN revision: 81043 --- src/bin/e_widget_radio.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/bin/e_widget_radio.c b/src/bin/e_widget_radio.c index c405821..1f00269 100644 --- a/src/bin/e_widget_radio.c +++ b/src/bin/e_widget_radio.c @@ -237,8 +237,11 @@ _e_wid_do(Evas_Object *obj) } } } - if (!toggled) return; wd = e_widget_data_get(obj); + if (!toggled) + { + if (wd->valnum == *(wd->group->valptr)) return; + } *(wd->group->valptr) = wd->valnum; edje_object_signal_emit(wd->o_radio, "e,state,on", "e"); } -- 2.7.4