#define SIZE_SORT_BOX_PAD_V 0
/* Image */
+#define DEFAULT_APP_ICON_PNG IMGDIR"/ico_default.png"
#define FAVORITE_ICON_PNG "ic_thumbnail_favorite_01.png"
#define BROWSER_ICON_PNG IMGDIR"/ic_apps_web.png"
if (pkgmgrinfo_appinfo_get_label(handle, &name) != PMINFO_R_OK)
return -1;
- if (pkgmgrinfo_appinfo_get_icon(handle, &icon) != PMINFO_R_OK)
- return -1;
+ if (pkgmgrinfo_appinfo_get_icon(handle, &icon) != PMINFO_R_OK) {
+ return 0;
+ }
r = app_contents_favorite_check(CONTENTS_APP, appid, &is_favorite);
if (r != APP_CONTENTS_ERROR_NONE)
{
struct app_data *adata;
Evas_Object *img, *ly, *icon_bg, *text_bg;
- char *icon;
+ char *icon, *img_path;
int idx;
if (!data || !obj) {
}
if (!icon || !strcmp(icon, STR_NULL))
- /* FIXME: The default icon image should be registerd. */
- elm_image_file_set(img, NULL, NULL);
+ img_path = DEFAULT_APP_ICON_PNG;
else if (!strcmp(get_app_id(adata), STR_BROWSER_ID))
- elm_image_file_set(img, BROWSER_ICON_PNG, NULL);
+ img_path = BROWSER_ICON_PNG;
else
- elm_image_file_set(img, icon, NULL);
+ img_path = icon;
+
+ if (!elm_image_file_set(img, img_path, NULL))
+ elm_image_file_set(img, DEFAULT_APP_ICON_PNG, NULL);
return img;
} else if (!strcmp(part, PART_THUMB_BG)) {