raster pushed a commit to branch master.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=3f744cedfba92076dc1809195b7e5c02aaa96b7b

commit 3f744cedfba92076dc1809195b7e5c02aaa96b7b
Author: Carsten Haitzler (Rasterman) <[email protected]>
Date:   Wed Jan 23 15:36:45 2019 +0000

    music control - fix aspect keeping of album art image
---
 TODO                           | 2 +-
 src/modules/music-control/ui.c | 7 +++++--
 2 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/TODO b/TODO
index 64426c408..3724c5cdc 100644
--- a/TODO
+++ b/TODO
@@ -13,7 +13,6 @@ TODO:
 * efm: thumbs for videos with movie posters like rage
 * efm: show symlink info in icon
 * efm: fuse support (mtp, sshfs, cifs/smb etc.)
-* music-control: fix aspect ratio of album cover image
 * shot: add manual cropping ability
 * shot: add simple free draw, box, line and text on top of shot before save
 * bz5: add icon set for actions/states per bt device (pair.unpair, etc.)
@@ -21,3 +20,4 @@ TODO:
   and downloads when received via obex bt (~/Downloads/...)
 
 DONE:
+* music-control: fix aspect ratio of album cover image
diff --git a/src/modules/music-control/ui.c b/src/modules/music-control/ui.c
index 31bd84c3c..1373861f3 100644
--- a/src/modules/music-control/ui.c
+++ b/src/modules/music-control/ui.c
@@ -55,8 +55,11 @@ _metadata_update(E_Music_Control_Instance *inst)
      }
    if (inst->ctxt->meta_cover)
      {
-        img = 
evas_object_image_filled_add(evas_object_evas_get(inst->content_popup));
-        evas_object_image_file_set(img, inst->ctxt->meta_cover, NULL);
+        img = e_icon_add(evas_object_evas_get(inst->content_popup));
+        e_icon_scale_size_set(img, 512);
+        e_icon_scale_up_set(img, EINA_TRUE);
+        e_icon_fill_inside_set(img, EINA_FALSE);
+        e_icon_file_set(img, inst->ctxt->meta_cover);
         edje_object_part_swallow(inst->content_popup, "cover_swallow", img);
         e_comp_object_util_del_list_append(inst->popup->comp_object, img);
      }

-- 


Reply via email to