From: sahil.ch525 Date: Tue, 12 Jan 2016 06:26:54 +0000 (+0530) Subject: [TSAM-748] Issue related to queue icon resolved X-Git-Tag: accepted/tizen/mobile/20160114.012821^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6b8307901b79d7e4b940ff1aa1e7aa6816fba166;p=profile%2Fmobile%2Fapps%2Fnative%2Fmusic-player.git [TSAM-748] Issue related to queue icon resolved Change-Id: Ia9295e3969dc1cc0e27eb405f923b5a255ffdba5 Signed-off-by: sahil.ch525 --- diff --git a/src/view/mp-player-view.c b/src/view/mp-player-view.c index 0f9e684..7dcbef5 100755 --- a/src/view/mp-player-view.c +++ b/src/view/mp-player-view.c @@ -422,6 +422,15 @@ static void _mp_player_view_update_control_queue_list_btn(void *data) struct appdata *ad = mp_util_get_appdata(); Evas_Object *image = elm_object_content_get(view->option_button[OPTION_QUEUE]); + char mp_image_path[1024] = {0}; + char *path = app_get_resource_path(); + if (path == NULL) { + return; + } + snprintf(mp_image_path, 1024, "%s%s/%s", path, "edje", IMAGE_EDJ_NAME); + EVENT_TRACE("path of IMAGE_EDJ_NAME is %s", IMAGE_EDJ_NAME); + free(path); + if (view->queue_list) { DEBUG_TRACE("queue list create"); elm_object_style_set(view->option_button[OPTION_QUEUE], "music/control_queue_thumbnail"); @@ -436,7 +445,7 @@ static void _mp_player_view_update_control_queue_list_btn(void *data) } else { DEBUG_TRACE("no queue list"); elm_object_style_set(view->option_button[OPTION_QUEUE], "music/control_queue"); - elm_image_file_set(image, IMAGE_EDJ_NAME, MP_ICON_PLAY_LIST_PATH); + elm_image_file_set(image, mp_image_path, MP_ICON_PLAY_LIST_PATH); } endfunc; } @@ -469,7 +478,16 @@ Evas_Object *_mp_player_view_create_control_queue_icon_btn(Evas_Object *parent, elm_object_style_set(btn, "music/control_queue"); ic = elm_icon_add(parent); - elm_image_file_set(ic, file, group); + char mp_image_path[1024] = {0}; + char *path = app_get_resource_path(); + if (path == NULL) { + return NULL; + } + snprintf(mp_image_path, 1024, "%s%s/%s", path, "edje", file); + EVENT_TRACE("path of IMAGE_EDJ_NAME is %s", file); + free(path); + elm_image_file_set(ic, mp_image_path, group); + evas_object_size_hint_aspect_set(ic, EVAS_ASPECT_CONTROL_VERTICAL, 1, 1); elm_image_resizable_set(ic, EINA_TRUE, EINA_TRUE); elm_object_content_set(btn, ic);