changeset 1062:b727849e2128 trunk

[svn] - Add the ability to easily save to playlist.m3u from the list menu. (For those who hate having to restart Audacious in order to save the playlist).
author nhjm449
date Mon, 15 May 2006 20:55:19 -0700
parents 91b6c26ba827
children 73be9df33f30
files audacious/ui_playlist.c
diffstat 1 files changed, 8 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/audacious/ui_playlist.c	Mon May 15 13:45:52 2006 -0700
+++ b/audacious/ui_playlist.c	Mon May 15 20:55:19 2006 -0700
@@ -70,7 +70,7 @@
     SEL_LOOKUP, CLOSE_PL_WINDOW, MOVE_UP, PLIST_SAVE,
     MISC_QUEUE, PLIST_CQUEUE, PLIST_JTF, PLIST_JTT,
     PLAYLISTWIN_REMOVE_DEAD_FILES,
-    PLAYLISTWIN_REFRESH
+    PLAYLISTWIN_REFRESH, PLIST_DEFAULTSAVE
 };
 
 enum {
@@ -210,6 +210,10 @@
      playlistwin_sub_menu_callback,
      PLIST_SAVE, "<StockItem>", GTK_STOCK_SAVE},
 
+    {N_("/Save Default List"), "<alt>S",
+     playlistwin_sub_menu_callback,
+     PLIST_DEFAULTSAVE, "<StockItem>", GTK_STOCK_SAVE},
+
     ITEM_SEPARATOR,
 
     {N_("/Update View"), "F5",
@@ -1876,6 +1880,9 @@
     case PLIST_SAVE:
         playlistwin_select_playlist_to_save(playlist_get_current_name());
         break;
+    case PLIST_DEFAULTSAVE:
+        playlist_save(bmp_paths[BMP_PATH_PLAYLIST_FILE], FALSE);
+        break;
     case PLIST_SAVE_AS:
         playlistwin_select_playlist_to_save(playlist_get_current_name());
         break;