diff options
author | Max Kellermann <max@duempel.org> | 2008-10-02 19:11:15 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-10-02 19:11:15 +0200 |
commit | 0f171f978cf7ff44c4880519974b07e20e86bc1a (patch) | |
tree | ac20128b549941eff2b7b0160c90ee469696f4ef /src | |
parent | 2fa18f35d878e280bbd8299aa4048bb59e183165 (diff) | |
download | mpd-0f171f978cf7ff44c4880519974b07e20e86bc1a.tar.gz mpd-0f171f978cf7ff44c4880519974b07e20e86bc1a.tar.xz mpd-0f171f978cf7ff44c4880519974b07e20e86bc1a.zip |
screen_browser: added constant playlist_format
Moved the format string for playlist files to the constant
"playlist_format".
Diffstat (limited to 'src')
-rw-r--r-- | src/screen_browser.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/screen_browser.c b/src/screen_browser.c index b32210029..1350a56b4 100644 --- a/src/screen_browser.c +++ b/src/screen_browser.c @@ -28,13 +28,14 @@ #include <string.h> -#define USE_OLD_LAYOUT #undef USE_OLD_ADD #define BUFSIZE 1024 #define HIGHLIGHT (0x01) +static const char playlist_format[] = "*%s*"; + /* clear the highlight flag for all items in the filelist */ static void clear_highlights(mpdclient_filelist_t *fl) @@ -149,11 +150,7 @@ browser_lw_callback(unsigned idx, int *highlight, void *data) mpd_PlaylistFile *plf = entity->info.playlistFile; char *filename = utf8_to_locale(basename(plf->path)); -#ifdef USE_OLD_LAYOUT - g_snprintf(buf, BUFSIZE, "*%s*", filename); -#else - g_snprintf(buf, BUFSIZE, "<Playlist> %s", filename); -#endif + g_snprintf(buf, BUFSIZE, playlist_format, filename); g_free(filename); return buf; } |