Skip to content

Commit

Permalink
use Gtk.Picture for all covers
Browse files Browse the repository at this point in the history
  • Loading branch information
SoongNoonien committed Oct 31, 2024
1 parent 88426b6 commit b5e835c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/plattenalbum.py
Original file line number Diff line number Diff line change
Expand Up @@ -1694,7 +1694,7 @@ def __init__(self, client, albumartist, album, date, file=None):
header_bar.pack_end(button)

# cover
album_cover=Gtk.Image(width_request=200, height_request=200)
album_cover=Gtk.Picture(width_request=200, height_request=200)

# packing
box=Gtk.Box(orientation=Gtk.Orientation.VERTICAL, spacing=30, margin_start=12, margin_end=12, margin_top=24, margin_bottom=24)
Expand All @@ -1720,9 +1720,9 @@ def __init__(self, client, albumartist, album, date, file=None):
songs=client.find(*tag_filter)
client.tagtypes("all")
if (cover:=client.get_cover(songs[0]["file"])) is None:
album_cover.set_from_paintable(lookup_icon(FALLBACK_COVER, 1024))
album_cover.set_paintable(lookup_icon(FALLBACK_COVER, 1024))
else:
album_cover.set_from_paintable(cover.get_paintable())
album_cover.set_paintable(cover.get_paintable())
for song in songs:
row=BrowserSongRow(song)
song_list.append(row)
Expand Down

0 comments on commit b5e835c

Please sign in to comment.