change recent channel thumbnail from gulliver to default icon 90/48390/2
authorSoohye Shin <soohye.shin@samsung.com>
Mon, 21 Sep 2015 06:38:49 +0000 (15:38 +0900)
committerSoohye Shin <soohye.shin@samsung.com>
Mon, 21 Sep 2015 07:07:44 +0000 (00:07 -0700)
Change-Id: If8a52f6b7cb321d6e7eed46b3cd6cc016db26839
Signed-off-by: Soohye Shin <soohye.shin@samsung.com>
images/gulliver.png [deleted file]
src/data/data_recent.c
src/view/view_recent.c

diff --git a/images/gulliver.png b/images/gulliver.png
deleted file mode 100644 (file)
index eed7a94..0000000
Binary files a/images/gulliver.png and /dev/null differ
index bbe084d..9cb71c4 100644 (file)
@@ -37,8 +37,6 @@
 #define BUF_TITLE_MAX 128
 #define MAX_BUF 64
 
-#define CHANNEL_GULLIVER IMAGEDIR"/gulliver.png"
-
 static struct datamgr_item *_new_datamgr_item(char *title, char *thumb,
                char *subtitle, char *parameter, char *key, char *value,
                char *icon, int type, time_t time)
@@ -182,11 +180,8 @@ static void _channel_list_foreach(gpointer data, gpointer user_data)
 
        _get_program(atoi(rdata->id), &program);
 
-       /* FIXME: For displaying default thumbmail, it should be removed */
-       if (!strcmp(rdata->id, "1"))
-               thumb = CHANNEL_GULLIVER;
-
-       di = _new_datamgr_item(buf, thumb, program, APP_ID_LIVETV, PARAM_SERVICE_ID,
+       di = _new_datamgr_item(buf, thumb ? thumb : IMAGE_RECENT_THUMB_CHANNEL,
+                       program, APP_ID_LIVETV, PARAM_SERVICE_ID,
                        rdata->id, IMAGE_RECENT_ICON_CHANNEL, 1, rdata->time);
        if (di)
                dm->list = eina_list_append(dm->list, di);
index baa2584..9899855 100644 (file)
@@ -315,7 +315,7 @@ static Evas_Object *_set_thumb(Evas_Object *eo, const char *file,
                }
        }
        elm_image_object_size_get(image, &w, &h);
-       if (w < IMAGE_MAX_SIZE && h < IMAGE_MAX_SIZE)
+       if (w <= IMAGE_MAX_SIZE && h <= IMAGE_MAX_SIZE)
                elm_image_resizable_set(image, EINA_FALSE, EINA_FALSE);
        else
                elm_image_fill_outside_set(image, EINA_TRUE);