- self.album_store = gtk.ListStore(int, str, int)
- self.album_view = gtk.TreeView(self.album_store)
- col0 = gtk.TreeViewColumn('Num')
- col = gtk.TreeViewColumn('Name')
- self.album_view.append_column(col0)
- self.album_view.append_column(col)
- cell0 = gtk.CellRendererText()
- col0.pack_start(cell0, True)
- col0.add_attribute(cell0, 'text', 0)
- cell = gtk.CellRendererText()
- col.pack_start(cell, True)
- col.add_attribute(cell, 'text', 1)
- self.album_view.set_search_column(1)
- col.set_sort_column_id(0)
- self.album_view.connect('row-activated', self.row_activated)
+ self.tracks = TrackList(numbers=True)
+ self.tracks.connect('row-activated', self.row_activated)