Put the playlist treeview in a ScrolledWindow.
authorTilman Sauerbeck <tilman@code-monkey.de>
Sat, 11 Mar 2006 21:54:49 +0000 (21:54 +0000)
committerTilman Sauerbeck <tilman@code-monkey.de>
Sat, 11 Mar 2006 22:54:49 +0000 (22:54 +0000)
bin/snett

index 7814411..58896a5 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))