summaryrefslogtreecommitdiff
path: root/src/edje_externals/elm.c
diff options
context:
space:
mode:
authorGustavo Lima Chaves <glima@profusion.mobi>2010-03-29 17:19:35 +0000
committerGustavo Lima Chaves <glima@profusion.mobi>2010-03-29 17:19:35 +0000
commit09d55bad9893fb2fc1d1af4359965fe0040219fa (patch)
tree2374ad785ee443d942649274a3c6e31292b1f352 /src/edje_externals/elm.c
parent86a794e2f52df52a59479fc8d5af629ce718fabd (diff)
New elm widget exported to edje: bubble.
SVN revision: 47559
Diffstat (limited to 'src/edje_externals/elm.c')
-rw-r--r--src/edje_externals/elm.c25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/edje_externals/elm.c b/src/edje_externals/elm.c
index 608649d45..b56ed96f6 100644
--- a/src/edje_externals/elm.c
+++ b/src/edje_externals/elm.c
@@ -132,6 +132,31 @@ external_common_icon_param_parse(Evas_Object **icon, Evas_Object *obj, const Ein
132 *icon = external_common_param_icon_get(obj, p); 132 *icon = external_common_param_icon_get(obj, p);
133} 133}
134 134
135Evas_Object *
136external_common_param_edje_object_get(Evas_Object *obj, const Edje_External_Param *p)
137{
138 Evas_Object *edje, *parent_widget, *ret;
139 const char *file;
140
141 if ((!p) || (!p->s) || (p->type != EDJE_EXTERNAL_PARAM_TYPE_STRING))
142 return NULL;
143
144 edje = evas_object_smart_parent_get(obj);
145 edje_object_file_get(edje, &file, NULL);
146
147 parent_widget = elm_widget_parent_widget_get(obj);
148 if (!parent_widget)
149 parent_widget = edje;
150
151 ret = edje_object_add(evas_object_evas_get(parent_widget));
152
153 if (edje_object_file_set(ret, file, p->s))
154 return ret;
155
156 evas_object_del(ret);
157 return NULL;
158}
159
135void 160void
136external_common_params_free(void *params) 161external_common_params_free(void *params)
137{ 162{