diff options
author | Lars-Dominik Braun <lars@6xq.net> | 2017-09-30 17:06:41 +0200 |
---|---|---|
committer | Lars-Dominik Braun <lars@6xq.net> | 2017-09-30 17:06:41 +0200 |
commit | 41a00cc1e643d9e9a69991ead268777ecd17c154 (patch) | |
tree | 83df94f477f8ca5380ff10a2843d3cc9b92508e6 /src/settings.c | |
parent | d9cdc86e4b84be863099f8cadfc54a176aaf5c90 (diff) | |
download | pianobar-41a00cc1e643d9e9a69991ead268777ecd17c154.tar.gz pianobar-41a00cc1e643d9e9a69991ead268777ecd17c154.tar.bz2 pianobar-41a00cc1e643d9e9a69991ead268777ecd17c154.zip |
Add tired rating to song
Now we can show a tired icon in the history.
Closes #637.
Diffstat (limited to 'src/settings.c')
-rw-r--r-- | src/settings.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/settings.c b/src/settings.c index 9dababc..9f05adc 100644 --- a/src/settings.c +++ b/src/settings.c @@ -119,6 +119,7 @@ void BarSettingsDestroy (BarSettings_t *settings) { free (settings->eventCmd); free (settings->loveIcon); free (settings->banIcon); + free (settings->tiredIcon); free (settings->atIcon); free (settings->npSongFormat); free (settings->npStationFormat); @@ -165,6 +166,7 @@ void BarSettingsRead (BarSettings_t *settings) { settings->sortOrder = BAR_SORT_NAME_AZ; settings->loveIcon = strdup (" <3"); settings->banIcon = strdup (" </3"); + settings->tiredIcon = strdup (" zZ"); settings->atIcon = strdup (" @ "); settings->npSongFormat = strdup ("\"%t\" by \"%a\" on \"%l\"%r%@%s"); settings->npStationFormat = strdup ("Station \"%n\" (%i)"); @@ -358,6 +360,9 @@ void BarSettingsRead (BarSettings_t *settings) { } else if (streq ("ban_icon", key)) { free (settings->banIcon); settings->banIcon = strdup (val); + } else if (streq ("tired_icon", key)) { + free (settings->tiredIcon); + settings->tiredIcon = strdup (val); } else if (streq ("at_icon", key)) { free (settings->atIcon); settings->atIcon = strdup (val); |