diff gui/ui/gtk/playlist.c @ 34667:7c447e9db447

Remove global variable pointing to top of playlist. Add a corresponding listMgr command and use it instead.
author ib
date Wed, 22 Feb 2012 10:39:05 +0000
parents a5c69b91ff2c
children 42fa91951bd2
line wrap: on
line diff
--- a/gui/ui/gtk/playlist.c	Wed Feb 22 01:07:10 2012 +0000
+++ b/gui/ui/gtk/playlist.c	Wed Feb 22 10:39:05 2012 +0000
@@ -89,6 +89,8 @@
 
 void ShowPlayList( void )
 {
+ plItem * next;
+
  if ( PlayList ) gtkActive( PlayList );
   else PlayList=create_PlayList();
 
@@ -130,10 +132,10 @@
 
  gtk_clist_freeze( GTK_CLIST( CLSelected ) );
  gtk_clist_clear( GTK_CLIST( CLSelected ) );
- if ( plList )
+ next = listMgr( PLAYLIST_GET,0 );
+ if ( next )
   {
    gchar * name, * path;
-   plItem * next = plList;
    while ( next || next->next )
     {
      char * text[1][3]; text[0][2]="";