summaryrefslogtreecommitdiff
path: root/src/edje_externals/elm.c
diff options
context:
space:
mode:
authorIván Briano <sachieru@gmail.com>2010-03-26 05:44:30 +0000
committerIván Briano <sachieru@gmail.com>2010-03-26 05:44:30 +0000
commit9bf940dc2e824ddfe3b4456172533a1e390cd689 (patch)
tree0ae1abab3761adc13f2cfe238577013236f0571c /src/edje_externals/elm.c
parent6d1eaf21d2d79d246aa5d10e150598d8dae1fc78 (diff)
Make someone else assume responsibility when Elementary is not the father.
SVN revision: 47479
Diffstat (limited to '')
-rw-r--r--src/edje_externals/elm.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/edje_externals/elm.c b/src/edje_externals/elm.c
index c7ed11609..478b0105a 100644
--- a/src/edje_externals/elm.c
+++ b/src/edje_externals/elm.c
@@ -112,7 +112,9 @@ external_common_param_icon_get(Evas_Object *obj, const Edje_External_Param *p)
112 edje_object_file_get(edje, &file, NULL); 112 edje_object_file_get(edje, &file, NULL);
113 113
114 parent_widget = elm_widget_parent_widget_get(obj); 114 parent_widget = elm_widget_parent_widget_get(obj);
115 elm_icon_add(parent_widget); 115 if (!parent_widget)
116 parent_widget = edje;
117 icon = elm_icon_add(parent_widget);
116 118
117 if (elm_icon_file_set(icon, file, p->s)) 119 if (elm_icon_file_set(icon, file, p->s))
118 return icon; 120 return icon;