summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHyojung Jo <hj903.jo@samsung.com>2015-07-30 19:19:43 +0900
committerHyojung Jo <hj903.jo@samsung.com>2015-07-30 19:19:43 +0900
commit4e74fd7a7c6d5d3ead41db572e87ca6ab2fc7dce (patch)
tree1510b7ac2112d027b4a5be4d5e587a70c24f7e3b
parent979cb57a3a64743ae912cd6e731633cfaf3f68c9 (diff)
downloadair_favorite-4e74fd7a7c6d5d3ead41db572e87ca6ab2fc7dce.tar.gz
air_favorite-4e74fd7a7c6d5d3ead41db572e87ca6ab2fc7dce.tar.bz2
air_favorite-4e74fd7a7c6d5d3ead41db572e87ca6ab2fc7dce.zip
Fixed the default gallery thumbnail to be unresizablesubmit/tizen/20150730.133525accepted/tizen/tv/20150731.005343
Change-Id: I15a08ef7843bebe9081fef736309954159d22d2a Signed-off-by: Hyojung Jo <hj903.jo@samsung.com>
-rw-r--r--src/grid/grid_gallery.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/grid/grid_gallery.c b/src/grid/grid_gallery.c
index 98637e5..448cb41 100644
--- a/src/grid/grid_gallery.c
+++ b/src/grid/grid_gallery.c
@@ -66,16 +66,18 @@ static Evas_Object *_content_get(void *data, Evas_Object *obj, const char *part)
return NULL;
if (!strcmp(part, PART_THUMB_ICON)) {
- img_path = dmgr->get_data(data, DATA_THUMBNAIL);
- if (!img_path)
- img_path = DEFAULT_IMAGE_PNG;
-
img = elm_image_add(obj);
if (!img) {
_ERR("elm_image_add failed.");
return NULL;
}
+ img_path = dmgr->get_data(data, DATA_THUMBNAIL);
+ if (!img_path) {
+ img_path = DEFAULT_IMAGE_PNG;
+ elm_image_resizable_set(img, EINA_FALSE, EINA_FALSE);
+ }
+
elm_image_file_set(img, img_path, NULL);
elm_image_aspect_fixed_set(img, EINA_FALSE);
evas_object_show(img);