[gnome-music/wip/jfelder/albumwidget-album-getter] albumwidget: Fix album property type
- From: Jean Felder <jfelder src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music/wip/jfelder/albumwidget-album-getter] albumwidget: Fix album property type
- Date: Fri, 30 Jul 2021 14:09:10 +0000 (UTC)
commit 2402452d2f83c68c9232d92bd98b8ceb2f0e3292
Author: Jean Felder <jfelder src gnome org>
Date: Fri Jul 30 16:01:33 2021 +0200
albumwidget: Fix album property type
gnomemusic/widgets/albumwidget.py | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/gnomemusic/widgets/albumwidget.py b/gnomemusic/widgets/albumwidget.py
index 81bf52957..60e5ba15b 100644
--- a/gnomemusic/widgets/albumwidget.py
+++ b/gnomemusic/widgets/albumwidget.py
@@ -24,8 +24,9 @@
from gettext import ngettext
-from gi.repository import GObject, Grl, Gtk
+from gi.repository import GObject, Gtk
+from gnomemusic.corealbum import CoreAlbum
from gnomemusic.utils import ArtSize
from gnomemusic.widgets.disclistboxwidget import DiscBox
from gnomemusic.widgets.disclistboxwidget import DiscListBox # noqa: F401
@@ -181,7 +182,7 @@ class AlbumWidget(Gtk.Box):
self.deselect_all()
@GObject.Property(
- type=Grl.Media, default=None, flags=GObject.ParamFlags.READABLE)
+ type=CoreAlbum, default=None, flags=GObject.ParamFlags.READABLE)
def album(self):
"""Get the current album.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]