summaryrefslogtreecommitdiff
path: root/src/ui_act.c
diff options
context:
space:
mode:
authorLars-Dominik Braun <PromyLOPh@lavabit.com>2010-11-18 21:21:55 +0100
committerLars-Dominik Braun <PromyLOPh@lavabit.com>2010-11-21 12:35:28 +0100
commit2b31c97de6fa541719cd26f9a61053cfc0e71203 (patch)
treed131aadb5277d293199666651810c547f4d0152d /src/ui_act.c
parentc58688994ae409c4d9c748a9bc2add16ca02e6de (diff)
downloadpianobar-2b31c97de6fa541719cd26f9a61053cfc0e71203.tar.gz
pianobar-2b31c97de6fa541719cd26f9a61053cfc0e71203.tar.bz2
pianobar-2b31c97de6fa541719cd26f9a61053cfc0e71203.zip
Show custom rating icon in upcoming/history song list
Closes issue #54
Diffstat (limited to 'src/ui_act.c')
-rw-r--r--src/ui_act.c14
1 files changed, 5 insertions, 9 deletions
diff --git a/src/ui_act.c b/src/ui_act.c
index 0f66986..0f0cac2 100644
--- a/src/ui_act.c
+++ b/src/ui_act.c
@@ -254,7 +254,8 @@ BarUiActCallback(BarUiActSongInfo) {
BarUiPrintStation (app->curStation);
/* print real station if quickmix */
- BarUiPrintSong (app->playlist, app->curStation->isQuickMix ?
+ BarUiPrintSong (&app->settings, app->playlist,
+ app->curStation->isQuickMix ?
PianoFindStationById (app->ph.stations, app->playlist->stationId) :
NULL);
}
@@ -420,13 +421,7 @@ BarUiActCallback(BarUiActPrintUpcoming) {
PianoSong_t *nextSong = app->playlist->next;
if (nextSong != NULL) {
- int i = 0;
- while (nextSong != NULL) {
- BarUiMsg (MSG_LIST, "%2i) \"%s\" by \"%s\"\n", i, nextSong->title,
- nextSong->artist);
- nextSong = nextSong->next;
- i++;
- }
+ BarUiListSongs (&app->settings, nextSong);
} else {
BarUiMsg (MSG_INFO, "No songs in queue.\n");
}
@@ -472,7 +467,8 @@ BarUiActCallback(BarUiActHistory) {
PianoSong_t *selectedSong;
if (app->songHistory != NULL) {
- selectedSong = BarUiSelectSong (app->songHistory, curFd);
+ selectedSong = BarUiSelectSong (&app->settings, app->songHistory,
+ curFd);
if (selectedSong != NULL) {
/* use user-defined keybindings */
allowedBuf[0] = app->settings.keys[BAR_KS_LOVE];