diff options
author | Alexey Yakovenko <waker@users.sourceforge.net> | 2013-11-23 21:25:27 +0100 |
---|---|---|
committer | Alexey Yakovenko <waker@users.sourceforge.net> | 2013-11-23 21:26:15 +0100 |
commit | 215c8e04d10ade25d87ffbc71ba65fc5dd1f039e (patch) | |
tree | 9fdfcf1a9596279f59f76af6db722d14670d57a3 /playlist.c | |
parent | 8baad4fe4f4a95022d5f902089680605627d289b (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.c | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -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; +} |