Mercurial > audlegacy
diff audacious/playlist.c @ 2123:97e2cbd87df0 trunk
[svn] - add playlist_select_next(), playlist_select_prev()
author | nenolod |
---|---|
date | Fri, 15 Dec 2006 07:28:29 -0800 |
parents | 7177279f9d26 |
children | 83c9caf0c554 |
line wrap: on
line diff
--- a/audacious/playlist.c Fri Dec 15 07:25:30 2006 -0800 +++ b/audacious/playlist.c Fri Dec 15 07:28:29 2006 -0800 @@ -247,6 +247,28 @@ playlists_iter = playlists; } +void +playlist_select_next(void) +{ + playlists_iter = g_list_next(playlists); + + if (playlists_iter == NULL) + playlists_iter = playlists; + + playlistwin_update_list(); +} + +void +playlist_select_prev(void) +{ + playlists_iter = g_list_next(playlists); + + if (playlists_iter == NULL) + playlists_iter = playlists; + + playlistwin_update_list(); +} + /* *********************** playlist code ********************** */ const gchar *