X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=plugins%2Fgtk%2Fgtk_playlist.c;h=381e2505ed318f5e2ff2b14dea8afce1819bd53b;hb=a0c1805bd992c0ae1fa018156358d831fbaf8f93;hp=7bed04ec218b1a5b417063b7eb0ed379bc215c0b;hpb=93ca3031ee75338ae1eb922b74cbfe7ee0dc66b8;p=vlc diff --git a/plugins/gtk/gtk_playlist.c b/plugins/gtk/gtk_playlist.c index 7bed04ec21..381e2505ed 100644 --- a/plugins/gtk/gtk_playlist.c +++ b/plugins/gtk/gtk_playlist.c @@ -1,9 +1,9 @@ /***************************************************************************** - * playlist_interface.c : Interface for the playlist dialog + * gtk_playlist.c : Interface for the playlist dialog ***************************************************************************** - * Copyright (C) 2000, 2001 VideoLAN + * Copyright (C) 2001 VideoLAN * - * Authors: .Pierre Baillet + * Authors: Pierre Baillet * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -48,14 +48,14 @@ #include "input_ext-intf.h" #include "interface.h" -#include "intf_plst.h" +#include "intf_playlist.h" #include "intf_msg.h" #include "intf_urldecode.h" #include "gtk_callbacks.h" #include "gtk_interface.h" #include "gtk_support.h" -#include "gtk_sys.h" +#include "intf_gtk.h" #include "main.h" @@ -142,7 +142,7 @@ void deleteGListItem(gpointer data, gpointer param) int curRow = ( int )data; intf_thread_t * p_intf = param; - intf_PlstDelete( p_main->p_playlist, curRow ); + intf_PlaylistDelete( p_main->p_playlist, curRow ); /* are we deleting the current played stream */ if( p_intf->p_sys->i_playing == curRow ) @@ -205,7 +205,7 @@ on_invertselection_clicked (GtkMenuItem *item, gpointer user_data) playlist_p = p_main->p_playlist; /* lock the struct */ - vlc_mutex_lock( &p_intf->p_sys->change_lock ); + vlc_mutex_lock( &p_intf->change_lock ); clist = GTK_CLIST( lookup_widget(p_intf->p_sys->p_playlist,"playlist_clist") ); /* have to copy the selection to an int * @@ -228,7 +228,7 @@ on_invertselection_clicked (GtkMenuItem *item, gpointer user_data) } free( selected ); gtk_clist_thaw( clist ); - vlc_mutex_unlock( &p_intf->p_sys->change_lock ); + vlc_mutex_unlock( &p_intf->change_lock ); } void @@ -257,7 +257,7 @@ on_delete_clicked (GtkMenuItem *item, playlist_p = p_main->p_playlist; /* lock the struct */ - vlc_mutex_lock( &p_intf->p_sys->change_lock ); + vlc_mutex_lock( &p_intf->change_lock ); clist = GTK_CLIST( lookup_widget(p_intf->p_sys->p_playlist,"playlist_clist") ); /* I use UNDOCUMENTED features to retrieve the selection... */ @@ -276,7 +276,7 @@ on_delete_clicked (GtkMenuItem *item, rebuildCList( clist, playlist_p ); } - vlc_mutex_unlock( &p_intf->p_sys->change_lock ); + vlc_mutex_unlock( &p_intf->change_lock ); } gboolean @@ -406,7 +406,7 @@ void on_generic_drop_data_received( intf_thread_t * p_intf, if(files != NULL) { /* lock the interface */ - vlc_mutex_lock( &p_intf->p_sys->change_lock ); + vlc_mutex_lock( &p_intf->change_lock ); intf_WarnMsg( 1, "List has %d elements",g_list_length( files ) ); intf_AppendList( p_playlist, position, files ); @@ -417,7 +417,7 @@ void on_generic_drop_data_received( intf_thread_t * p_intf, rebuildCList( clist , p_playlist ); /* unlock the interface */ - vlc_mutex_unlock( &p_intf->p_sys->change_lock ); + vlc_mutex_unlock( &p_intf->change_lock ); } } @@ -514,7 +514,7 @@ int intf_AppendList( playlist_t * p_playlist, int i_pos, GList * list ) length = g_list_length( list ); for( dummy=0; dummyp_input->b_eof = 1; } - intf_PlstJumpto( p_main->p_playlist, row-1 ); + intf_PlaylistJumpto( p_main->p_playlist, row-1 ); } return TRUE; } @@ -564,12 +564,13 @@ on_playlist_clist_event (GtkWidget *widget, void GtkPlayListManage( gpointer p_data ) { /* this thing really sucks for now :( */ - /* TODO speak more with interface/intf_plst.c */ + + /* TODO speak more with interface/intf_playlist.c */ intf_thread_t *p_intf = (void *)p_data; playlist_t * p_playlist = p_main->p_playlist ; - vlc_mutex_lock( &p_intf->p_sys->change_lock ); + vlc_mutex_lock( &p_intf->change_lock ); if( p_intf->p_sys->i_playing != p_playlist->i_index ) { @@ -597,6 +598,6 @@ void GtkPlayListManage( gpointer p_data ) } p_intf->p_sys->i_playing = p_playlist->i_index; } - vlc_mutex_unlock( &p_intf->p_sys->change_lock ); + vlc_mutex_unlock( &p_intf->change_lock ); }