Mercurial > audlegacy
changeset 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 |
files | ChangeLog audacious/playlist.c audacious/playlist.h |
diffstat | 3 files changed, 32 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog Fri Dec 15 07:25:30 2006 -0800 +++ b/ChangeLog Fri Dec 15 07:28:29 2006 -0800 @@ -1,3 +1,11 @@ +2006-12-15 15:25:30 +0000 William Pitcock <nenolod@nenolod.net> + revision [3249] + - remove static Playlist default_playlist + + trunk/audacious/playlist.c | 18 ------------------ + 1 file changed, 18 deletions(-) + + 2006-12-15 15:23:19 +0000 William Pitcock <nenolod@nenolod.net> revision [3247] - remove all improper uses of playlist_get()
--- 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 *
--- a/audacious/playlist.h Fri Dec 15 07:25:30 2006 -0800 +++ b/audacious/playlist.h Fri Dec 15 07:28:29 2006 -0800 @@ -97,6 +97,8 @@ void playlist_init(void); void playlist_add_playlist(Playlist *); void playlist_remove_playlist(Playlist *); +void playlist_select_next(void); +void playlist_select_prev(void); void playlist_clear(Playlist *playlist); void playlist_delete(Playlist *playlist, gboolean crop);