summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 25e197c)
raw | patch | inline | side by side (parent: 25e197c)
author | Kalle Wallin <kaw@linux.se> | |
Fri, 23 Apr 2004 17:04:22 +0000 (17:04 +0000) | ||
committer | Kalle Wallin <kaw@linux.se> | |
Fri, 23 Apr 2004 17:04:22 +0000 (17:04 +0000) |
screen_play.c | patch | blob | history |
diff --git a/screen_play.c b/screen_play.c
index cfdfa410af65aa525dfcbaababab74a007434835..66073d2b6a7ae3183398d430e4d9fba1775c8636 100644 (file)
--- a/screen_play.c
+++ b/screen_play.c
#define BUFSIZE 256
-#define ENABLE_FANCY_PLAYLIST_MANAGMENT
-
static list_window_t *lw = NULL;
static char *
if( mpc_error(c) )
return -1;
-#ifdef ENABLE_FANCY_PLAYLIST_MANAGMENT
+#ifndef DISABLE_FANCY_PLAYLIST_MANAGMENT
/* add the song to playlist */
c->playlist = g_list_append(c->playlist, (gpointer) mpd_songDup(song));
c->playlist_length++;
/* clear selected highlight in the browse screen */
file_set_highlight(c, song, 0);
-#ifdef ENABLE_FANCY_PLAYLIST_MANAGMENT
+#ifndef DISABLE_FANCY_PLAYLIST_MANAGMENT
/* increment the playlist id, so we dont retrives a new playlist */
c->playlist_id++;
/* make shure the playlist is repainted */
lw->clear = 1;
lw->repaint = 1;
+ if( lw->start>0 )
+ lw->start--; /* make shure we stay on the same row */
list_window_check_selected(lw, c->playlist_length);
#endif