* will be stretched (retaining aspect if its an image file) to completely fill
* the bg object. This may mean some parts are not visible.
*
+ * @note Once the image of @p obj is set, a previously set one will be deleted,
+ * even if @p file is NULL.
+ *
* @ingroup Bg
*/
EAPI void
evas_object_del(wd->img);
wd->img = NULL;
}
- if (!file) return;
+ if (!file)
+ {
+ eina_stringshare_del(wd->file);
+ wd->file = NULL;
+ eina_stringshare_del(wd->group);
+ wd->group = NULL;
+ return;
+ }
eina_stringshare_replace(&wd->file, file);
eina_stringshare_replace(&wd->group, group);
if (((p = strrchr(file, '.'))) && (!strcasecmp(p, ".edj")))
{
ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
- if (!file) return;
if (file) *file = wd->file;
if (group) *group = wd->group;
}