summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 2fa18f3)
raw | patch | inline | side by side (parent: 2fa18f3)
author | Max Kellermann <max@duempel.org> | |
Thu, 2 Oct 2008 17:11:15 +0000 (19:11 +0200) | ||
committer | Max Kellermann <max@duempel.org> | |
Thu, 2 Oct 2008 17:11:15 +0000 (19:11 +0200) |
Moved the format string for playlist files to the constant
"playlist_format".
"playlist_format".
src/screen_browser.c | patch | blob | history |
diff --git a/src/screen_browser.c b/src/screen_browser.c
index b32210029efe034c8708351aae96f619a8ab8279..1350a56b4b7c134460be439c401cde6dc28c83be 100644 (file)
--- a/src/screen_browser.c
+++ b/src/screen_browser.c
#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)
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;
}