summaryrefslogtreecommitdiff
path: root/legacy/elementary/src/edje_externals/elm_radio.c
diff options
context:
space:
mode:
authorIván Briano <sachieru@gmail.com>2010-04-23 18:04:24 +0000
committerIván Briano <sachieru@gmail.com>2010-04-23 18:04:24 +0000
commit13015087f4d25a51abb08adaa4f4701dd9a64207 (patch)
tree9f0a8a5460cb013d306ccfb4715faef9d4a218d0 /legacy/elementary/src/edje_externals/elm_radio.c
parent9a7485dda2404e07607d58a0269558de2fc60ddc (diff)
Allow setting group for radios
SVN revision: 48255
Diffstat (limited to '')
-rw-r--r--legacy/elementary/src/edje_externals/elm_radio.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/legacy/elementary/src/edje_externals/elm_radio.c b/legacy/elementary/src/edje_externals/elm_radio.c
index b43415b..35206a8 100644
--- a/legacy/elementary/src/edje_externals/elm_radio.c
+++ b/legacy/elementary/src/edje_externals/elm_radio.c
@@ -63,6 +63,16 @@ external_radio_param_set(void *data __UNUSED__, Evas_Object *obj, const Edje_Ext
63 return EINA_TRUE; 63 return EINA_TRUE;
64 } 64 }
65 } 65 }
66 else if (!strcmp(param->name, "group"))
67 {
68 if (param->type == EDJE_EXTERNAL_PARAM_TYPE_STRING)
69 {
70 Evas_Object *ed = evas_object_smart_parent_get(obj);
71 Evas_Object *group = edje_object_part_swallow_get(ed, param->s);
72 elm_radio_group_add(obj, group);
73 return EINA_TRUE;
74 }
75 }
66 76
67 ERR("unknown parameter '%s' of type '%s'", 77 ERR("unknown parameter '%s' of type '%s'",
68 param->name, edje_external_param_type_str(param->type)); 78 param->name, edje_external_param_type_str(param->type));
@@ -94,6 +104,11 @@ external_radio_param_get(void *data __UNUSED__, const Evas_Object *obj, Edje_Ext
94 return EINA_TRUE; 104 return EINA_TRUE;
95 } 105 }
96 } 106 }
107 else if (!strcmp(param->name, "group"))
108 {
109 /* not easy to get group name back from live object */
110 return EINA_FALSE;
111 }
97 112
98 ERR("unknown parameter '%s' of type '%s'", 113 ERR("unknown parameter '%s' of type '%s'",
99 param->name, edje_external_param_type_str(param->type)); 114 param->name, edje_external_param_type_str(param->type));