[MPlayer-cvslog] r36094 - trunk/gui/dialog/playlist.c
ib
subversion at mplayerhq.hu
Fri Mar 29 18:17:02 CET 2013
Author: ib
Date: Fri Mar 29 18:17:02 2013
New Revision: 36094
Log:
Remove HidePlaylist().
Simply destroy the window.
(It's pointless to check whether the window is existing,
because it cannot be called without an existing window.)
Modified:
trunk/gui/dialog/playlist.c
Modified: trunk/gui/dialog/playlist.c
==============================================================================
--- trunk/gui/dialog/playlist.c Fri Mar 29 18:15:19 2013 (r36093)
+++ trunk/gui/dialog/playlist.c Fri Mar 29 18:17:02 2013 (r36094)
@@ -90,18 +90,6 @@ static int compare_func(const void *a, c
return i;
}
-static void HidePlaylist( void )
-{
- if ( !Playlist ) return;
- NrOfSelected=NrOfEntrys=0;
- nfree( CLListSelected ); nfree( CLFileSelected );
- free( old_path );
- old_path=strdup( current_path );
- gtk_widget_hide( Playlist );
- gtk_widget_destroy( Playlist );
- Playlist=NULL;
-}
-
static void plRowSelect( GtkCList * clist,gint row,gint column,GdkEvent * event,gpointer user_data )
{
switch ( (int) user_data )
@@ -177,7 +165,13 @@ static void plButtonReleased( GtkButton
free(curr.name);
}
case 0: // cancel
- HidePlaylist();
+ NrOfSelected=NrOfEntrys=0;
+ nfree( CLListSelected );
+ nfree( CLFileSelected );
+ free( old_path );
+ old_path=strdup( current_path );
+ gtk_widget_destroy( Playlist );
+ Playlist=NULL;
break;
case 2: // remove
{
More information about the MPlayer-cvslog
mailing list