#define SIZE_MENU_BOX_PAD_V 0
#define SIZE_SORT_BOX_PAD_H 0
#define SIZE_SORT_BOX_PAD_V 0
+#define SIZE_ICON_MAX 100
/* Image */
#define DEFAULT_APP_ICON_PNG IMGDIR"/ico_default.png"
struct app_data *adata;
Evas_Object *img, *ly, *icon_bg, *text_bg;
char *icon, *img_path;
- int idx;
+ int idx, w, h;
if (!data || !obj) {
_ERR("Invalid argument.");
if (!elm_image_file_set(img, img_path, NULL))
elm_image_file_set(img, DEFAULT_APP_ICON_PNG, NULL);
- elm_image_resizable_set(img, EINA_FALSE, EINA_FALSE);
+ elm_image_object_size_get(img, &w, &h);
+
+ if (w <= SIZE_ICON_MAX && h <= SIZE_ICON_MAX)
+ elm_image_resizable_set(img, EINA_FALSE, EINA_FALSE);
return img;
} else if (!strcmp(part, PART_THUMB_BG)) {