Commits

Damián Nohales committed 18a3621

Resizable columns on lists, is this good?

Comments (0)

Files changed (1)

         """
         rendererText = gtk.CellRendererText()
         column = gtk.TreeViewColumn(_("Title"), rendererText, text=0)
-        column.set_max_width(180)
+        column.set_resizable(True)
         self.result_view.append_column(column)
 
         rendererText = gtk.CellRendererText()
         column = gtk.TreeViewColumn(_("Artist"), rendererText, text=1)
-        column.set_max_width(100)
+        column.set_resizable(True)
         self.result_view.append_column(column)
 
         rendererText = gtk.CellRendererText()
         column = gtk.TreeViewColumn(_("Album"), rendererText, text=2)
-        column.set_max_width(150)
+        column.set_resizable(True)
         self.result_view.append_column(column)
 
         rendererText = gtk.CellRendererText()
         column = gtk.TreeViewColumn(_("SongID"), rendererText, text=3)
-        column.set_max_width(50)
+        column.set_resizable(True)
         self.result_view.append_column(column)
 
     def _create_play_columns(self):
         
         column = gtk.TreeViewColumn(_("Title"), rendererText, text=0)
         column.add_attribute(rendererText, 'weight', 4)
-        column.set_max_width(180)
+        column.set_resizable(True)
         self.play_view.append_column(column)
 
         column = gtk.TreeViewColumn(_("Artist"), rendererText, text=1)
         column.add_attribute(rendererText, 'weight', 4)
-        column.set_max_width(100)
+        column.set_resizable(True)
         self.play_view.append_column(column)
 
         column = gtk.TreeViewColumn(_("SongID"), rendererText, text=2)
         column.add_attribute(rendererText, 'weight', 4)
-        column.set_max_width(50)
+        column.set_resizable(True)
         self.play_view.append_column(column)
         
     def _create_downloads_columns(self):
         """
         rendererText = gtk.CellRendererText()
         column = gtk.TreeViewColumn(_("File name"), rendererText, text=0)
-        column.set_max_width(250)
+        column.set_resizable(True)
         self.downloads_view.append_column(column)
         
         rendererText = gtk.CellRendererText()
         column = gtk.TreeViewColumn(_("SongID"), rendererText, text=1)
-        column.set_max_width(80)
+        column.set_resizable(True)
         self.downloads_view.append_column(column)
         
         rendererProgress = gtk.CellRendererProgress()
         column = gtk.TreeViewColumn(_("Download progress"), rendererProgress, value=2)
-        column.set_max_width(400)
+        column.set_resizable(True)
         self.downloads_view.append_column(column)
         
         rendererText = gtk.CellRendererText()
         column = gtk.TreeViewColumn(_("Size"), rendererText, text=3)
-        column.set_max_width(100)
+        column.set_resizable(True)
         self.downloads_view.append_column(column)
 
     def quit_app(self, widget, data=None):