summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 89f21b1)
raw | patch | inline | side by side (parent: 89f21b1)
author | Valmiky Arquissandas <valmiky.arquissandas@ist.utl.pt> | |
Tue, 14 Aug 2012 03:58:15 +0000 (04:58 +0100) | ||
committer | Max Kellermann <max@duempel.org> | |
Tue, 14 Aug 2012 21:48:29 +0000 (23:48 +0200) |
src/screen_song.c | patch | blob | history |
diff --git a/src/screen_song.c b/src/screen_song.c
index 22f52f4b4441233f33da4929006e2d762074a16d..156486aa36128828313528e7e29415ad11d1dbf8 100644 (file)
--- a/src/screen_song.c
+++ b/src/screen_song.c
LABEL_LENGTH = MPD_TAG_COUNT,
LABEL_PATH,
LABEL_BITRATE,
+ LABEL_POSITION,
};
static const char *const tag_labels[] = {
[MPD_TAG_TITLE] = N_("Title"),
[MPD_TAG_ALBUM] = N_("Album"),
[LABEL_LENGTH] = N_("Length"),
+ [LABEL_POSITION] = N_("Position"),
[MPD_TAG_COMPOSER] = N_("Composer"),
[MPD_TAG_NAME] = N_("Name"),
[MPD_TAG_DISC] = N_("Disc"),
{
assert(song != NULL);
+ char songpos[16];
+ g_snprintf(songpos, sizeof(songpos), "%d", mpd_song_get_pos(song) + 1);
+ screen_song_append(_(tag_labels[LABEL_POSITION]), songpos,
+ max_tag_label_width);
+
screen_song_append_tag(song, MPD_TAG_ARTIST);
screen_song_append_tag(song, MPD_TAG_TITLE);
screen_song_append_tag(song, MPD_TAG_ALBUM);