changeset 234:9118a2e2d192 trunk

[svn] Closer, but doesn't do it properly.
author nenolod
date Sat, 26 Nov 2005 17:22:55 -0800
parents bc265f3727f4
children 1a8fcda55ac1
files audacious/mainwin.c
diffstat 1 files changed, 11 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/audacious/mainwin.c	Sat Nov 26 17:08:15 2005 -0800
+++ b/audacious/mainwin.c	Sat Nov 26 17:22:55 2005 -0800
@@ -3356,9 +3356,10 @@
     else
         count--;
 
-    draw_playlist_window(TRUE);
-    draw_equalizer_window(FALSE);
-
+    draw_playlist_window(mainwin_force_redraw);
+    draw_equalizer_window(mainwin_force_redraw);
+
+    /* what is this for? see below. --nenolod */
     mainwin_force_redraw = FALSE;
 
     if (mainwin_title_text) {
@@ -3370,6 +3371,13 @@
 
         mainwin_set_info_text();
         playlistwin_update_list();
+
+	/* set mainwin_force_redraw so that the windows are redrawn
+	 * when the title_text has changed. (new song), this should
+	 * enforce updates of the playlist window. --nenolod
+	 */
+	mainwin_force_redraw = TRUE;
+        draw_playlist_window(mainwin_force_redraw);
     }
 
     GDK_THREADS_LEAVE();