[gnome-music] artistsview: Make sidebar resizable



commit 2d00a64da8f82e9f2113ccd1c8faa30c7a140df9
Author: rafaellcoellho <rafaellcoellho gmail com>
Date:   Mon Jan 25 22:48:39 2021 -0300

    artistsview: Make sidebar resizable
    
    ArtistsView now inherits from GtkPaned.
    
    Related: #269

 data/ui/ArtistsView.ui          | 5 ++++-
 gnomemusic/views/artistsview.py | 2 +-
 2 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/data/ui/ArtistsView.ui b/data/ui/ArtistsView.ui
index cce0e7be1..2e82fc833 100644
--- a/data/ui/ArtistsView.ui
+++ b/data/ui/ArtistsView.ui
@@ -1,7 +1,7 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <interface>
   <requires lib="gtk+" version="3.18"/>
-  <template class="ArtistsView" parent="GtkBox">
+  <template class="ArtistsView" parent="GtkPaned">
     <property name="visible">True</property>
     <child>
       <object class="GtkScrolledWindow">
@@ -18,6 +18,9 @@
           </object>
         </child>
       </object>
+      <packing>
+        <property name="shrink">False</property>
+      </packing>
     </child>
     <child>
       <object class="GtkScrolledWindow" id="_artist_container">
diff --git a/gnomemusic/views/artistsview.py b/gnomemusic/views/artistsview.py
index c32069397..68f400bd5 100644
--- a/gnomemusic/views/artistsview.py
+++ b/gnomemusic/views/artistsview.py
@@ -30,7 +30,7 @@ from gnomemusic.widgets.artisttile import ArtistTile
 
 
 @Gtk.Template(resource_path="/org/gnome/Music/ui/ArtistsView.ui")
-class ArtistsView(Gtk.Box):
+class ArtistsView(Gtk.Paned):
     """Main view of all available artists
 
     Consists of a list of artists on the left side and an overview of


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