From 2f6313fe95ec4826fe406cf2aba68ea54c8639db Mon Sep 17 00:00:00 2001 From: Bryan Schumaker Date: Wed, 25 May 2011 23:05:05 -0400 Subject: [PATCH] ocarina: Add track number to gui It's helpful to see, especially since it shows how everything is sorted. --- ocarina/sources/column.py | 6 +++--- ocarina/sources/list.py | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ocarina/sources/column.py b/ocarina/sources/column.py index fdb45912..15e79785 100644 --- a/ocarina/sources/column.py +++ b/ocarina/sources/column.py @@ -2,9 +2,9 @@ import gtk -attrs = ("id", "title", "lenstr", "artist", "album", "year") -columns = ["Id", "Title", "Length", "Artist", "Album", "Year"] -col_width = [ 2, 300, 60, 125, 125, 50] +attrs = ("id", "track", "title", "lenstr", "artist", "album", "year") +columns = ["Id", "#", "Title", "Length", "Artist", "Album", "Year"] +col_width = [ 2, 20, 300, 60, 125, 125, 50] cell = gtk.CellRendererText() cell.set_fixed_height_from_font(1) diff --git a/ocarina/sources/list.py b/ocarina/sources/list.py index 30259458..45b7ed8f 100644 --- a/ocarina/sources/list.py +++ b/ocarina/sources/list.py @@ -4,4 +4,4 @@ import gtk class List(gtk.ListStore): def __init__(self): - gtk.ListStore.__init__(self, int, str, str, str, str, int) + gtk.ListStore.__init__(self, int, str, str, str, str, str, int)