summaryrefslogtreecommitdiff
path: root/playlist.c
diff options
context:
space:
mode:
authorGravatar Alexey Yakovenko <waker@users.sourceforge.net>2013-11-23 21:25:27 +0100
committerGravatar Alexey Yakovenko <waker@users.sourceforge.net>2013-11-23 21:26:15 +0100
commit215c8e04d10ade25d87ffbc71ba65fc5dd1f039e (patch)
tree9fdfcf1a9596279f59f76af6db722d14670d57a3 /playlist.c
parent8baad4fe4f4a95022d5f902089680605627d289b (diff)
gtkui: cleanup songchanged_cb; prevent auto-switching playlists because of cursor follows playback; added plt_deselect_all API
Diffstat (limited to 'playlist.c')
-rw-r--r--playlist.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/playlist.c b/playlist.c
index 83f1d4c7..eb6268cc 100644
--- a/playlist.c
+++ b/playlist.c
@@ -4129,3 +4129,12 @@ plt_add_files_end (playlist_t *plt, int visibility) {
l->callback_end (&d, l->user_data);
}
}
+
+void
+plt_deselect_all (playlist_t *playlist) {
+ LOCK;
+ for (playItem_t *it = playlist->head[PL_MAIN]; it; it = it->next[PL_MAIN]) {
+ it->selected = 0;
+ }
+ UNLOCK;
+}