diff options
author | Lars-Dominik Braun <PromyLOPh@lavabit.com> | 2010-07-30 17:45:36 +0200 |
---|---|---|
committer | Lars-Dominik Braun <PromyLOPh@lavabit.com> | 2010-07-30 17:45:36 +0200 |
commit | d3046d174245920c01f2e19fa43f2cccdba9540b (patch) | |
tree | d2893ab841490e9e88f21ec6653e227a7b80c395 /src/ui_act.c | |
parent | df4022ccda870f2a1b0e4e254f4a298da48fc4f9 (diff) | |
download | pianobar-d3046d174245920c01f2e19fa43f2cccdba9540b.tar.gz pianobar-d3046d174245920c01f2e19fa43f2cccdba9540b.tar.bz2 pianobar-d3046d174245920c01f2e19fa43f2cccdba9540b.zip |
Feature: Custom station sorting
Sort stations by name and/or isquickmix.
Diffstat (limited to 'src/ui_act.c')
-rw-r--r-- | src/ui_act.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/ui_act.c b/src/ui_act.c index ba7dd1c..7328e40 100644 --- a/src/ui_act.c +++ b/src/ui_act.c @@ -327,7 +327,8 @@ void BarUiActMoveSong (BAR_KS_ARGS) { RETURN_IF_NO_SONG; - reqData.to = BarUiSelectStation (ph, "Move song to station: ", curFd); + reqData.to = BarUiSelectStation (ph, "Move song to station: ", + settings->sortOrder, curFd); if (reqData.to != NULL) { /* find original station (just is case we're playing a quickmix * station) */ @@ -392,7 +393,7 @@ void BarUiActRenameStation (BAR_KS_ARGS) { */ void BarUiActSelectStation (BAR_KS_ARGS) { PianoStation_t *newStation = BarUiSelectStation (ph, "Select station: ", - curFd); + settings->sortOrder, curFd); if (newStation != NULL) { *curStation = newStation; BarUiPrintStation ((*curStation)); @@ -450,7 +451,8 @@ void BarUiActSelectQuickMix (BAR_KS_ARGS) { if ((*curStation)->isQuickMix) { PianoStation_t *selStation; while ((selStation = BarUiSelectStation (ph, - "Toggle quickmix for station: ", curFd)) != NULL) { + "Toggle quickmix for station: ", settings->sortOrder, + curFd)) != NULL) { selStation->useQuickMix = !selStation->useQuickMix; } BarUiMsg (MSG_INFO, "Setting quickmix stations... "); |