[gnome-music/wip/jfelder/gtk4-v3: 21/110] artistalbumswidget: Do not inherit from final class AdwClamp
- From: Jean Felder <jfelder src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music/wip/jfelder/gtk4-v3: 21/110] artistalbumswidget: Do not inherit from final class AdwClamp
- Date: Fri, 4 Feb 2022 04:30:21 +0000 (UTC)
commit a3dc82335557054131c18b56c3ed96f669ad061d
Author: Jean Felder <jfelder src gnome org>
Date: Sun Jan 9 14:23:41 2022 +0100
artistalbumswidget: Do not inherit from final class AdwClamp
data/ui/ArtistAlbumsWidget.ui | 15 ++++++++++-----
gnomemusic/widgets/artistalbumswidget.py | 2 +-
2 files changed, 11 insertions(+), 6 deletions(-)
---
diff --git a/data/ui/ArtistAlbumsWidget.ui b/data/ui/ArtistAlbumsWidget.ui
index eb7fe0032..877fa6748 100644
--- a/data/ui/ArtistAlbumsWidget.ui
+++ b/data/ui/ArtistAlbumsWidget.ui
@@ -1,13 +1,18 @@
<?xml version="1.0" encoding="UTF-8"?>
<interface>
<requires lib="gtk+" version="3.18"/>
- <template class="ArtistAlbumsWidget" parent="AdwClamp">
- <property name="maximum-size">1000</property>
- <property name="orientation">horizontal</property>
- <property name="visible">True</property>
+ <template class="ArtistAlbumsWidget" parent="GtkBox">
+ <property name="orientation">vertical</property>
<child>
- <object class="GtkListBox" id="_listbox">
+ <object class="AdwClamp">
+ <property name="maximum-size">1000</property>
+ <property name="orientation">horizontal</property>
<property name="visible">True</property>
+ <child>
+ <object class="GtkListBox" id="_listbox">
+ <property name="visible">True</property>
+ </object>
+ </child>
</object>
</child>
</template>
diff --git a/gnomemusic/widgets/artistalbumswidget.py b/gnomemusic/widgets/artistalbumswidget.py
index 5e1475abe..fecaf668e 100644
--- a/gnomemusic/widgets/artistalbumswidget.py
+++ b/gnomemusic/widgets/artistalbumswidget.py
@@ -34,7 +34,7 @@ if typing.TYPE_CHECKING:
@Gtk.Template(resource_path="/org/gnome/Music/ui/ArtistAlbumsWidget.ui")
-class ArtistAlbumsWidget(Adw.Clamp):
+class ArtistAlbumsWidget(Gtk.Box):
"""Widget containing all albums by an artist
A vertical list of AlbumWidget, containing all the albums
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]