summaryrefslogtreecommitdiff
path: root/plugins/gtkui/search.c
diff options
context:
space:
mode:
authorGravatar Alexey Yakovenko <wakeroid@gmail.com>2010-04-29 22:25:53 +0200
committerGravatar Alexey Yakovenko <wakeroid@gmail.com>2010-04-29 23:07:11 +0200
commitd3d0c653d2fc1b03e22c2a7c664ac94ceeafce60 (patch)
treee3af0f89b92f0764b6ae4ae5f10e0d4ada337b9f /plugins/gtkui/search.c
parent2b22ab371c2a4e914fa6bb2fce6b8d5a7c30b163 (diff)
removal of deprecated column ids;
added %B substitute for band / album artist; deleted old session management code; fixed saving column config after "edit column"
Diffstat (limited to 'plugins/gtkui/search.c')
-rw-r--r--plugins/gtkui/search.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/gtkui/search.c b/plugins/gtkui/search.c
index 965b526f..09680f24 100644
--- a/plugins/gtkui/search.c
+++ b/plugins/gtkui/search.c
@@ -424,10 +424,10 @@ search_playlist_init (GtkWidget *widget) {
// create default set of columns
DB_conf_item_t *col = deadbeef->conf_find ("search.column.", NULL);
if (!col) {
- add_column_helper (listview, "Artist / Album", 150, DB_COLUMN_ARTIST_ALBUM, NULL, 0);
- add_column_helper (listview, "Track №", 50, DB_COLUMN_TRACK, NULL, 1);
- add_column_helper (listview, "Title / Track Artist", 150, DB_COLUMN_TITLE, NULL, 0);
- add_column_helper (listview, "Duration", 50, DB_COLUMN_DURATION, NULL, 0);
+ add_column_helper (listview, "Artist / Album", 150, -1, "%a - %b", 0);
+ add_column_helper (listview, "Track №", 50, -1, "%n", 1);
+ add_column_helper (listview, "Title / Track Artist", 150, -1, "%t", 0);
+ add_column_helper (listview, "Duration", 50, -1, "%l", 0);
}
else {
while (col) {