edje_object_signal_emit(wd->radio, "elm,state,text,visible", "elm");
else
edje_object_signal_emit(wd->radio, "elm,state,text,hidden", "elm");
- edje_object_part_text_set(wd->radio, "elm.text", wd->label);
+ edje_object_part_text_escaped_set(wd->radio, "elm.text", wd->label);
if (elm_widget_disabled_get(obj))
{
edje_object_signal_emit(wd->radio, "elm,state,disabled", "elm");
edje_object_signal_emit(wd->radio, "elm,state,text,hidden", "elm");
edje_object_message_signal_process(wd->radio);
}
- edje_object_part_text_set(wd->radio, "elm.text", label);
+ edje_object_part_text_escaped_set(wd->radio, "elm.text", label);
_sizing_eval(obj);
}
}
EAPI void
-elm_radio_label_set(Evas_Object *obj, const char *label)
-{
- _elm_radio_label_set(obj, NULL, label);
-}
-
-EAPI const char *
-elm_radio_label_get(const Evas_Object *obj)
-{
- return _elm_radio_label_get(obj, NULL);
-}
-
-EAPI void
-elm_radio_icon_set(Evas_Object *obj, Evas_Object *icon)
-{
- _content_set_hook(obj, "icon", icon);
-}
-
-EAPI Evas_Object *
-elm_radio_icon_get(const Evas_Object *obj)
-{
- return _content_get_hook(obj, "icon");
-}
-
-EAPI Evas_Object *
-elm_radio_icon_unset(Evas_Object *obj)
-{
- return _content_unset_hook(obj, "icon");
-}
-
-EAPI void
elm_radio_group_add(Evas_Object *obj, Evas_Object *group)
{
ELM_CHECK_WIDTYPE(obj, widtype);
wd->group->valuep = NULL;
}
}
+
+EAPI Evas_Object *
+elm_radio_selected_object_get(Evas_Object *obj)
+{
+ Eina_List *l;
+ Evas_Object *child;
+ Widget_Data *wd2;
+
+ ELM_CHECK_WIDTYPE(obj, widtype) NULL;
+ Widget_Data *wd = elm_widget_data_get(obj);
+ if (!wd) return NULL;
+
+ EINA_LIST_FOREACH(wd->group->radios, l, child)
+ {
+ wd2 = elm_widget_data_get(child);
+ if (wd2->value == wd->group->value)
+ return child;
+ }
+ return NULL;
+}