diff --git a/src/screen_queue.c b/src/screen_queue.c
index b36ba66c8f87d686d6c4fad0bbe3b5064508304b..750abb01d451b784bb1256c532406748d1a9f5dd 100644 (file)
--- a/src/screen_queue.c
+++ b/src/screen_queue.c
struct mpdclient *c;
} completion_callback_data_t;
+/*
static struct hscroll hscroll;
static guint scroll_source_id;
+*/
#endif
static struct mpdclient_playlist *playlist;
screen_queue_save_selection();
}
+/*
#ifndef NCMPC_MINI
static gboolean
scroll_timer_callback(G_GNUC_UNUSED gpointer data)
return false;
}
#endif
+*/
static const char *
-screen_queue_lw_callback(unsigned idx, bool *highlight, char **second_column,
- G_GNUC_UNUSED void *data)
+screen_queue_lw_callback(unsigned idx, G_GNUC_UNUSED void *data)
{
static char songname[MAX_SONG_LENGTH];
struct mpd_song *song;
assert(idx < playlist_length(playlist));
song = playlist_get(playlist, idx);
- if ((int)mpd_song_get_id(song) == current_song_id)
- *highlight = true;
strfsong(songname, MAX_SONG_LENGTH, options.list_format, song);
+ /*
#ifndef NCMPC_MINI
- if (second_column != NULL && mpd_song_get_duration(song) > 0) {
- char duration[32];
- format_duration_short(duration, sizeof(duration),
- mpd_song_get_duration(song));
- *second_column = g_strdup(duration);
- }
-
if (idx == lw->selected)
{
- int second_column_len = 0;
- if (second_column != NULL && *second_column != NULL)
- second_column_len = strlen(*second_column);
- if (options.scroll && utf8_width(songname) > (unsigned)(COLS - second_column_len - 1) )
- {
+ if (options.scroll && utf8_width(songname) > (unsigned)COLS) {
static unsigned current_song;
char *tmp;
}
}
}
-#else
- (void)second_column;
#endif
+ */
return songname;
}