Mercurial > audlegacy
changeset 2258:2c66f4fe9cfa trunk
[svn] - added delete playlist action (finally :p)
author | giacomo |
---|---|
date | Thu, 04 Jan 2007 04:11:21 -0800 |
parents | af716dc0cdb9 |
children | 3668594b4fc8 |
files | ChangeLog audacious/actions-mainwin.h audacious/ui/mainwin.ui audacious/ui/playlist.ui audacious/ui_main.c audacious/ui_manager.c |
diffstat | 6 files changed, 20 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog Thu Jan 04 03:58:58 2007 -0800 +++ b/ChangeLog Thu Jan 04 04:11:21 2007 -0800 @@ -1,3 +1,11 @@ +2007-01-04 11:58:58 +0000 Giacomo Lozito <james@develia.org> + revision [3519] + - do not create GtkAccelGroup anymore; use ui_manager_get_accel_group to get accelerator groups from ui_manager + trunk/audacious/ui_main.c | 3 --- + trunk/audacious/ui_playlist.c | 4 +--- + 2 files changed, 1 insertion(+), 6 deletions(-) + + 2007-01-04 09:25:00 +0000 William Pitcock <nenolod@nenolod.net> revision [3517] - somehow playlist_container.h got expunged from the SDK distribution.
--- a/audacious/actions-mainwin.h Thu Jan 04 03:58:58 2007 -0800 +++ b/audacious/actions-mainwin.h Thu Jan 04 04:11:21 2007 -0800 @@ -75,6 +75,7 @@ void action_playlist_prev(void); void action_playlist_new(void); void action_playlist_next(void); +void action_playlist_delete(void); void action_preferences(void); void action_quit(void); void action_track_info(void);
--- a/audacious/ui/mainwin.ui Thu Jan 04 03:58:58 2007 -0800 +++ b/audacious/ui/mainwin.ui Thu Jan 04 04:11:21 2007 -0800 @@ -96,6 +96,7 @@ <separator /> <menuitem action="playlist select next" /> <menuitem action="playlist select previous" /> + <menuitem action="playlist delete" /> <separator /> <menuitem action="playlist load" /> <menuitem action="playlist save" />
--- a/audacious/ui/playlist.ui Thu Jan 04 03:58:58 2007 -0800 +++ b/audacious/ui/playlist.ui Thu Jan 04 04:11:21 2007 -0800 @@ -71,6 +71,7 @@ <separator /> <menuitem action="playlist select next" /> <menuitem action="playlist select previous" /> + <menuitem action="playlist delete" /> <separator /> <menuitem action="playlist load" /> <menuitem action="playlist save" />
--- a/audacious/ui_main.c Thu Jan 04 03:58:58 2007 -0800 +++ b/audacious/ui_main.c Thu Jan 04 04:11:21 2007 -0800 @@ -4003,6 +4003,12 @@ } void +action_playlist_delete( void ) +{ + playlist_remove_playlist( playlist_get_active() ); +} + +void action_preferences( void ) { show_prefs_window();
--- a/audacious/ui_manager.c Thu Jan 04 03:58:58 2007 -0800 +++ b/audacious/ui_manager.c Thu Jan 04 04:11:21 2007 -0800 @@ -214,6 +214,9 @@ { "playlist select previous", GTK_STOCK_MEDIA_PREVIOUS, N_("Select Previous Playlist"), "<Shift><Ctrl>P", N_("Select Previous Playlist"), G_CALLBACK(action_playlist_prev) }, + { "playlist delete", GTK_STOCK_DELETE , N_("Delete Playlist"), "<Shift>D", + N_("Delete Playlist"), G_CALLBACK(action_playlist_delete) }, + { "playlist load", GTK_STOCK_OPEN, N_("Load List"), "O", N_("Loads a playlist file into the selected playlist."), G_CALLBACK(action_load_list) },