[gnome-music] playlistsview: Make sidebar resizable



commit 203327aa195d16dcc22fc0dd0728afe05d5b1786
Author: rafaellcoellho <rafaellcoellho gmail com>
Date:   Tue Jan 26 00:30:36 2021 -0300

    playlistsview: Make sidebar resizable
    
    PlaylistsView now inherits from GtkPaned.
    
    Closes: #269

 data/ui/PlaylistsView.ui          | 5 ++++-
 gnomemusic/views/playlistsview.py | 2 +-
 2 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/data/ui/PlaylistsView.ui b/data/ui/PlaylistsView.ui
index 4fffcc2d3..8cb743e17 100644
--- a/data/ui/PlaylistsView.ui
+++ b/data/ui/PlaylistsView.ui
@@ -1,7 +1,7 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <interface>
   <requires lib="gtk+" version="3.18"/>
-  <template class="PlaylistsView" parent="GtkBox">
+  <template class="PlaylistsView" 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>
   </template>
 </interface>
diff --git a/gnomemusic/views/playlistsview.py b/gnomemusic/views/playlistsview.py
index a6db6e964..4a6ccf0b7 100644
--- a/gnomemusic/views/playlistsview.py
+++ b/gnomemusic/views/playlistsview.py
@@ -32,7 +32,7 @@ from gnomemusic.widgets.playlisttile import PlaylistTile
 
 
 @Gtk.Template(resource_path="/org/gnome/Music/ui/PlaylistsView.ui")
-class PlaylistsView(Gtk.Box):
+class PlaylistsView(Gtk.Paned):
     """Main view for playlists"""
 
     __gtype_name__ = "PlaylistsView"


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