use enums for tracklist size and sort order values

This commit is contained in:
coderkun 2016-08-01 13:08:27 +02:00
commit f38737e6ba
5 changed files with 53 additions and 39 deletions

View file

@ -52,3 +52,19 @@ class Utils:
filetype = 'jpeg'
pixbuf.savev(cache.create_filename(album), filetype, [], [])
return pixbuf
class TracklistSize:
LARGE = 0
SMALL = 1
HIDDEN = 2
class SortOrder:
ARTIST = 0
TITLE = 1
YEAR = 2