put default channel thumbnail 22/45522/1
authorSoohye Shin <soohye.shin@samsung.com>
Fri, 7 Aug 2015 05:41:30 +0000 (14:41 +0900)
committerSoohye Shin <soohye.shin@samsung.com>
Fri, 7 Aug 2015 05:41:30 +0000 (14:41 +0900)
Change-Id: I6b50313761bfffb8a64d2d744e5f8344b32ee87b
Signed-off-by: Soohye Shin <soohye.shin@samsung.com>
images/gulliver.png [new file with mode: 0644]
src/data/data_recent.c

diff --git a/images/gulliver.png b/images/gulliver.png
new file mode 100644 (file)
index 0000000..361957e
Binary files /dev/null and b/images/gulliver.png differ
index 3110fe6..1de56ad 100644 (file)
@@ -32,6 +32,8 @@
 
 #define BUF_TITLE_MAX 128
 
+#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)
@@ -124,6 +126,7 @@ static void _channel_list_foreach(gpointer data, gpointer user_data)
        TvServiceChannel channel;
        int r;
        char buf[BUF_TITLE_MAX];
+       char *thumb = NULL;
 
        if (!data || !user_data) {
                _ERR("Invalid argument");
@@ -149,7 +152,11 @@ static void _channel_list_foreach(gpointer data, gpointer user_data)
                                channel.program_name ?
                                                channel.program_name : "");
 
-       di = _new_datamgr_item(buf, NULL, NULL, PACKAGE_LIVETV, KEY_CHANNEL,
+       /* FIXME: For displaying default thumbmail, it should be removed */
+       if (!strcmp(rdata->id, "1"))
+               thumb = CHANNEL_GULLIVER;
+
+       di = _new_datamgr_item(buf, thumb, NULL, PACKAGE_LIVETV, KEY_CHANNEL,
                        rdata->id, IMAGE_RECENT_ICON_CHANNEL, 1, rdata->time);
        if (di)
                dm->list = eina_list_append(dm->list, di);