[gnome-music/wip/mschraal/gtk4: 52/70] artistalbumwidget: Cleanup



commit bb1c5883a9da24338527d1f1fd7764e7e125fa4b
Author: Marinus Schraal <mschraal gnome org>
Date:   Thu Oct 31 16:21:30 2019 +0100

    artistalbumwidget: Cleanup

 data/ui/ArtistAlbumWidget.ui             | 33 +++++++++-----------------------
 gnomemusic/widgets/artistalbumswidget.py |  1 -
 2 files changed, 9 insertions(+), 25 deletions(-)
---
diff --git a/data/ui/ArtistAlbumWidget.ui b/data/ui/ArtistAlbumWidget.ui
index 54ccb83f..0ac3d7cf 100644
--- a/data/ui/ArtistAlbumWidget.ui
+++ b/data/ui/ArtistAlbumWidget.ui
@@ -1,40 +1,35 @@
 <?xml version="1.0" encoding="UTF-8"?>
-<!-- Generated with glade 3.20.0 -->
 <interface>
   <requires lib="gtk+" version="3.12"/>
   <template parent="GtkBox" class="ArtistAlbumWidget">
+<!--
     <property name="margin_top">30</property>
     <property name="margin_right">120</property>
-    <property name="visible">True</property>
+-->
     <child>
       <object class="CoverStack" id="_cover_stack">
         <property name="visible">True</property>
-       <property name="margin_top">20</property>
-       <property name="margin_right">30</property>
+<!--
+        <property name="margin_top">20</property>
+        <property name="margin_right">30</property>
         <property name="margin_bottom">20</property>
-       <property name="margin_left">120</property>
+        <property name="margin_left">120</property>
+-->
         <property name="can_focus">False</property>
         <property name="valign">start</property>
       </object>
-      <packing>
-        <property name="position">0</property>
-      </packing>
     </child>
     <child>
       <object class="GtkBox" id="_album_box">
-        <property name="visible">True</property>
-        <property name="can_focus">False</property>
         <property name="orientation">vertical</property>
         <child>
           <object class="GtkBox" id="box3">
-            <property name="visible">True</property>
-            <property name="can_focus">False</property>
             <child>
               <object class="GtkLabel" id="_title_year">
-                <property name="visible">True</property>
-                <property name="can_focus">False</property>
+<!--
                 <property name="margin_top">20</property>
                 <property name="margin_bottom">20</property>
+-->
                 <property name="ellipsize">middle</property>
                 <property name="xalign">0</property>
                 <property name="yalign">0</property>
@@ -44,25 +39,15 @@
               </object>
             </child>
           </object>
-          <packing>
-            <property name="position">0</property>
-          </packing>
         </child>
         <child>
           <object class="DiscListBox" id="_disc_list_box">
             <property name="visible">True</property>
             <property name="can_focus">False</property>
             <property name="selection-mode">0</property>
-            <!-- <property name="orientation">vertical</property> -->
           </object>
-          <packing>
-            <property name="position">1</property>
-          </packing>
         </child>
       </object>
-      <packing>
-        <property name="position">1</property>
-      </packing>
     </child>
   </template>
 </interface>
diff --git a/gnomemusic/widgets/artistalbumswidget.py b/gnomemusic/widgets/artistalbumswidget.py
index 7a3a689e..0044d3f6 100644
--- a/gnomemusic/widgets/artistalbumswidget.py
+++ b/gnomemusic/widgets/artistalbumswidget.py
@@ -70,7 +70,6 @@ class ArtistAlbumsWidget(Gtk.ListBox):
         self.bind_model(self._model, self._add_album)
 
         self.get_style_context().add_class("artist-albums-widget")
-        self.show_all()
 
     def _song_activated(self, widget, song_widget):
         self._album = None


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]