changeset 3621:2d6106656276

Notify playlist manager of more changes
author Kieran Clancy <clancy.kieran+audacious@gmail.com>
date Tue, 25 Sep 2007 20:38:40 +0930
parents d1935795e936
children 3f6d23bc3f8d
files src/audacious/playlist.c
diffstat 1 files changed, 11 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/audacious/playlist.c	Tue Sep 25 00:27:38 2007 +0200
+++ b/src/audacious/playlist.c	Tue Sep 25 20:38:40 2007 +0930
@@ -328,6 +328,7 @@
         playlists_iter = playlists;
 
     playlistwin_update_list(playlist_get_active());
+    playlist_manager_update();
 }
 
 void
@@ -342,6 +343,7 @@
         playlists_iter = playlists;
 
     playlistwin_update_list(playlist_get_active());
+    playlist_manager_update();
 }
 
 void
@@ -353,6 +355,7 @@
         playlists_iter = playlists;
 
     playlistwin_update_list(playlist);
+    playlist_manager_update();
 }
 
 /* *********************** playlist code ********************** */
@@ -374,11 +377,13 @@
     if (!title) {
         playlist->title = NULL;
         if(oldtitle) g_free(oldtitle);
+        playlist_manager_update();
         return FALSE;
     }
 
     playlist->title = str_to_utf8(title);
     if(oldtitle) g_free(oldtitle);
+    playlist_manager_update();
     return TRUE;
 }
 
@@ -789,6 +794,7 @@
         __playlist_ins_with_info_tuple(playlist, filename, pos, tuple, dec);
         playlist_generate_shuffle_list(playlist);
         playlistwin_update_list(playlist);
+        playlist_manager_update();
         return TRUE;
     }
 
@@ -1231,6 +1237,7 @@
         playback_initiate();
 
     playlistwin_update_list(playlist);
+    playlist_manager_update();
 }
 
 void
@@ -1291,6 +1298,8 @@
         playback_initiate();
     else
         playlistwin_update_list(playlist);
+
+    playlist_manager_update();
 }
 
 void
@@ -1844,6 +1853,7 @@
 
     playlist_generate_shuffle_list(playlist);
     playlistwin_update_list(playlist);
+    playlist_manager_update();
 
     return new_len - old_len;
 }
@@ -3358,6 +3368,7 @@
 
     playlist_recalc_total_time(newpl);
     playlistwin_update_list(playlist);
+    playlist_manager_update();
 
     return newpl;
 }