summaryrefslogtreecommitdiff
path: root/legacy/elementary/src/edje_externals/elm_radio.c
diff options
context:
space:
mode:
authorIván Briano <sachieru@gmail.com>2009-12-08 05:53:12 +0000
committerIván Briano <sachieru@gmail.com>2009-12-08 05:53:12 +0000
commit3d6a80c5f87c4adc6f825dca6906bd8ee0d27fdb (patch)
tree6e00ec66aac4516c4ce12d3b06e27505e3afaee1 /legacy/elementary/src/edje_externals/elm_radio.c
parent02cb10c6e54e7ea4f307fac5fc425acb7e4c2334 (diff)
Rename some parametes, use defaults, use info
SVN revision: 44274
Diffstat (limited to '')
-rw-r--r--legacy/elementary/src/edje_externals/elm_radio.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/legacy/elementary/src/edje_externals/elm_radio.c b/legacy/elementary/src/edje_externals/elm_radio.c
index b91c685..c74f82a 100644
--- a/legacy/elementary/src/edje_externals/elm_radio.c
+++ b/legacy/elementary/src/edje_externals/elm_radio.c
@@ -25,7 +25,8 @@ external_radio_state_set(void *data, Evas_Object *obj, const void *from_params,
25 { 25 {
26 Evas_Object *ed = evas_object_smart_parent_get(obj); 26 Evas_Object *ed = evas_object_smart_parent_get(obj);
27 Evas_Object *group = edje_object_part_swallow_get(ed, p1->group_name); 27 Evas_Object *group = edje_object_part_swallow_get(ed, p1->group_name);
28 elm_radio_group_add(obj, group); 28 if (group)
29 elm_radio_group_add(obj, group);
29 } 30 }
30 return; 31 return;
31 } 32 }
@@ -53,7 +54,7 @@ external_radio_params_parse(void *data, Evas_Object *obj, const Eina_List *param
53 54
54 external_common_icon_param_parse(&mem->icon, obj, params); 55 external_common_icon_param_parse(&mem->icon, obj, params);
55 56
56 param = edje_external_param_find(params, "param group"); 57 param = edje_external_param_find(params, "group");
57 if (param) 58 if (param)
58 mem->group_name = eina_stringshare_add(param->s); 59 mem->group_name = eina_stringshare_add(param->s);
59 60
@@ -79,6 +80,8 @@ external_radio_params_free(void *params)
79static Edje_External_Param_Info external_radio_params[] = { 80static Edje_External_Param_Info external_radio_params[] = {
80 DEFINE_EXTERNAL_COMMON_PARAMS, 81 DEFINE_EXTERNAL_COMMON_PARAMS,
81 EDJE_EXTERNAL_PARAM_INFO_STRING("icon"), 82 EDJE_EXTERNAL_PARAM_INFO_STRING("icon"),
83 EDJE_EXTERNAL_PARAM_INFO_STRING("group"),
84 EDJE_EXTERNAL_PARAM_INFO_INT("state"),
82 EDJE_EXTERNAL_PARAM_INFO_SENTINEL 85 EDJE_EXTERNAL_PARAM_INFO_SENTINEL
83}; 86};
84 87