Put the playlist treeview in a ScrolledWindow.
[snett.git] / bin / snett
index 7814411e24b3d24efb81aa25c1d4e2e2e0604275..58896a5e07ba164a8afc2f3fdd15392b6c132524 100755 (executable)
--- a/bin/snett
+++ b/bin/snett
@@ -246,7 +246,13 @@ module Snett
                        col = Gtk::TreeViewColumn.new("Name", renderer, :text => 0)
                        @view.append_column(col)
 
-                       vbox.add(@view)
+                       scrolled = Gtk::ScrolledWindow.new
+                       scrolled.set_policy(Gtk::POLICY_AUTOMATIC, Gtk::POLICY_AUTOMATIC)
+                       scrolled.add(@view)
+
+                       vbox.add(scrolled)
+
+                       resize(350, 400)
 
                        Snett.instance.xmms.medialib_playlists_list.
                                            notifier(&method(:on_playlists_list))