options_wallpaper: Check retrun value of edje_object_file_set

edje_object_file_set can fail. Better check for the return value and act

CID 1147527
This commit is contained in:
Stefan Schmidt 2014-01-30 11:24:47 +01:00
parent 90b3a93698
commit 921c713b40
1 changed files with 1 additions and 1 deletions

View File

@ -132,7 +132,7 @@ _grid_content_get(void *data, Evas_Object *obj, const char *part)
o = elm_layout_add(obj);
oe = elm_layout_edje_get(o);
edje_object_file_set(oe, path, "terminology/background");
if (!edje_object_file_set(oe, path, "terminology/background")) return NULL;
return o;