From f61b4716a2f92cb18eac2553e916ae862b64123f Mon Sep 17 00:00:00 2001 From: Andrzej Rybczak Date: Sun, 4 Oct 2009 21:10:57 +0200 Subject: add support for multiple tags --- src/display.cpp | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'src/display.cpp') diff --git a/src/display.cpp b/src/display.cpp index ef9a34d2..e42918a9 100644 --- a/src/display.cpp +++ b/src/display.cpp @@ -186,7 +186,7 @@ void Display::SongsInColumns(const MPD::Song &s, void *, Menu *menu) if (it->color != clDefault) *menu << it->color; whline(menu->Raw(), 32, menu->GetWidth()-where); - std::string tag = get ? (s.*get)() : ""; + std::string tag = get ? s.GetTags(get) : ""; if (it->right_alignment) { if (!tag.empty() || it->display_empty_tag) @@ -267,34 +267,34 @@ void Display::Tags(const MPD::Song &s, void *data, Menu *menu) switch (static_cast *>(data)->Choice()) { case 0: - ShowTag(*menu, s.GetTitle()); + ShowTag(*menu, s.GetTags(&MPD::Song::GetTitle)); return; case 1: - ShowTag(*menu, s.GetArtist()); + ShowTag(*menu, s.GetTags(&MPD::Song::GetArtist)); return; case 2: - ShowTag(*menu, s.GetAlbum()); + ShowTag(*menu, s.GetTags(&MPD::Song::GetAlbum)); return; case 3: - ShowTag(*menu, s.GetDate()); + ShowTag(*menu, s.GetTags(&MPD::Song::GetDate)); return; case 4: - ShowTag(*menu, s.GetTrack()); + ShowTag(*menu, s.GetTags(&MPD::Song::GetTrack)); return; case 5: - ShowTag(*menu, s.GetGenre()); + ShowTag(*menu, s.GetTags(&MPD::Song::GetGenre)); return; case 6: - ShowTag(*menu, s.GetComposer()); + ShowTag(*menu, s.GetTags(&MPD::Song::GetComposer)); return; case 7: - ShowTag(*menu, s.GetPerformer()); + ShowTag(*menu, s.GetTags(&MPD::Song::GetPerformer)); return; case 8: - ShowTag(*menu, s.GetDisc()); + ShowTag(*menu, s.GetTags(&MPD::Song::GetDisc)); return; case 9: - ShowTag(*menu, s.GetComment()); + ShowTag(*menu, s.GetTags(&MPD::Song::GetComment)); return; case 11: if (s.GetNewName().empty()) -- cgit v1.2.3