diff audacious/ui_playlist.c @ 2026:f15664434382 trunk

[svn] rewrite scan thread with g_cond_wait(): - new scan thread is completely event driven. - reduce playlist update latency. - no need for periodical execution.
author yaz
date Thu, 30 Nov 2006 03:16:08 -0800
parents 1d9c1026d9f8
children 88bbe66923fe
line wrap: on
line diff
--- a/audacious/ui_playlist.c	Wed Nov 29 19:49:30 2006 -0800
+++ b/audacious/ui_playlist.c	Thu Nov 30 03:16:08 2006 -0800
@@ -643,15 +643,13 @@
 void
 playlistwin_scroll_up_pushed(void)
 {
-    playlistwin_list->pl_first -= 3;
-    playlistwin_update_list();
+    playlistwin_scroll(-3);
 }
 
 void
 playlistwin_scroll_down_pushed(void)
 {
-    playlistwin_list->pl_first += 3;
-    playlistwin_update_list();
+    playlistwin_scroll(3);
 }
 
 static void
@@ -1462,8 +1460,10 @@
         return FALSE;
     }
 
-    if (refresh)
+    if (refresh) {
+        g_cond_signal(cond_scan);
         playlistwin_update_list();
+    }
 
     return TRUE;
 }