diff options
author | Kalle Wallin <kaw@linux.se> | 2004-06-09 17:27:05 +0000 |
---|---|---|
committer | Kalle Wallin <kaw@linux.se> | 2004-06-09 17:27:05 +0000 |
commit | a14b635343ebdcb711885d840687d181ebd2bfbb (patch) | |
tree | 84173de0856bb79bb768ea192e47e654af9a4435 /src/screen_play.c | |
parent | f205159073955a99df5afcd52af6eca4d057d8e0 (diff) | |
download | mpd-a14b635343ebdcb711885d840687d181ebd2bfbb.tar.gz mpd-a14b635343ebdcb711885d840687d181ebd2bfbb.tar.xz mpd-a14b635343ebdcb711885d840687d181ebd2bfbb.zip |
Updated the get_title callback.
git-svn-id: https://svn.musicpd.org/ncmpc/trunk@1421 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to 'src/screen_play.c')
-rw-r--r-- | src/screen_play.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/screen_play.c b/src/screen_play.c index 8d3fc6cf7..9dc2a9651 100644 --- a/src/screen_play.c +++ b/src/screen_play.c @@ -151,9 +151,14 @@ play_exit(void) } static char * -play_title(void) +play_title(char *str, size_t size) { - return _("Music Player Client - Playlist"); + if( strcmp(options.host, "localhost") == 0 ) + return _("Playlist"); + + snprintf(str, size, _("Playlist on %s"), options.host); + + return str; } static void |