curds: Change genre and artist node icons
Signed-off-by: Anna Schumaker <Anna@NoWheyCreamery.com>
This commit is contained in:
parent
68953c273d
commit
0eca51eae1
|
@ -5,7 +5,7 @@ from .. import notify
|
|||
|
||||
class ArtistNode(node.PlaylistNode):
|
||||
def __init__(self):
|
||||
node.PlaylistNode.__init__(self, "Artists", "system-users")
|
||||
node.PlaylistNode.__init__(self, "Artists", "avatar-default-symbolic")
|
||||
notify.register("new-track", self.new_track)
|
||||
|
||||
def new_track(self, track):
|
||||
|
|
|
@ -5,7 +5,7 @@ from .. import notify
|
|||
|
||||
class GenreNode(node.PlaylistNode):
|
||||
def __init__(self):
|
||||
node.PlaylistNode.__init__(self, "Genres", "audio-x-generic-symbolic")
|
||||
node.PlaylistNode.__init__(self, "Genres", "emblem-generic")
|
||||
notify.register("new-track", self.new_track)
|
||||
|
||||
def new_track(self, track):
|
||||
|
|
|
@ -18,14 +18,14 @@ class TestArtistPlaylist(unittest.TestCase):
|
|||
anode = artist.ArtistNode()
|
||||
self.assertIsInstance(anode, node.PlaylistNode)
|
||||
self.assertEqual(anode.name, "Artists")
|
||||
self.assertEqual(anode.icon, "system-users")
|
||||
self.assertEqual(anode.icon, "avatar-default-symbolic")
|
||||
|
||||
track1 = tags.Track.lookup(os.path.join(test_library, "Test Artist 01", test_album))
|
||||
self.assertEqual(anode.n_children(), 1)
|
||||
|
||||
plist = anode.nth_child(0)
|
||||
self.assertEqual(plist.name, "Test Artist 01")
|
||||
self.assertEqual(plist.icon, "system-users")
|
||||
self.assertEqual(plist.icon, "avatar-default-symbolic")
|
||||
self.assertEqual(len(plist), 1)
|
||||
self.assertEqual(plist[0], track1)
|
||||
|
||||
|
|
|
@ -17,7 +17,7 @@ class TestGenrePlaylist(unittest.TestCase):
|
|||
gnode = genre.GenreNode()
|
||||
self.assertIsInstance(gnode, node.PlaylistNode)
|
||||
self.assertEqual(gnode.name, "Genres")
|
||||
self.assertEqual(gnode.icon, "audio-x-generic-symbolic")
|
||||
self.assertEqual(gnode.icon, "emblem-generic")
|
||||
|
||||
|
||||
track1 = tags.Track.lookup(os.path.join(test_library, "Test Album 1",
|
||||
|
@ -26,7 +26,7 @@ class TestGenrePlaylist(unittest.TestCase):
|
|||
|
||||
plist = gnode.nth_child(0)
|
||||
self.assertEqual(plist.name, "Test Genre 1")
|
||||
self.assertEqual(plist.icon, "audio-x-generic-symbolic")
|
||||
self.assertEqual(plist.icon, "emblem-generic")
|
||||
self.assertEqual(len(plist), 1)
|
||||
self.assertEqual(plist[0], track1)
|
||||
|
||||
|
|
Loading…
Reference in New Issue