comparison Gui/mplayer/gtk/pl.c @ 6903:c2d4100c964e

- fix mixer handling - some change in menu - fix evLoadPlay bug - etc
author pontscho
date Sun, 04 Aug 2002 19:23:58 +0000
parents ded48a755830
children e32d3d0d8998
comparison
equal deleted inserted replaced
6902:3ccdfd580f0d 6903:c2d4100c964e
167 } 167 }
168 CLListSelected=calloc( 1,NrOfSelected * sizeof( int ) ); 168 CLListSelected=calloc( 1,NrOfSelected * sizeof( int ) );
169 } 169 }
170 gtk_clist_thaw( GTK_CLIST( CLSelected ) ); 170 gtk_clist_thaw( GTK_CLIST( CLSelected ) );
171 171
172 gtk_widget_show( PlayList ); gtkIncVisible(); 172 gtk_widget_show( PlayList );
173 } 173 }
174 174
175 void HidePlayList( void ) 175 void HidePlayList( void )
176 { 176 {
177 if ( !gtkVPlaylist ) return; 177 if ( !gtkVPlaylist ) return;
178 gtkVPlaylist=NrOfSelected=NrOfEntrys=0; 178 gtkVPlaylist=NrOfSelected=NrOfEntrys=0;
179 if ( CLListSelected ) free( CLListSelected ); CLListSelected=NULL; 179 if ( CLListSelected ) free( CLListSelected ); CLListSelected=NULL;
180 if ( CLFileSelected ) free( CLFileSelected ); CLFileSelected=NULL; 180 if ( CLFileSelected ) free( CLFileSelected ); CLFileSelected=NULL;
181 if ( old_path ) free( old_path ); old_path=strdup( current_path ); 181 if ( old_path ) free( old_path ); old_path=strdup( current_path );
182 gtk_widget_hide( PlayList ); 182 gtk_widget_hide( PlayList );
183 gtk_widget_destroy( PlayList ); gtkDecVisible(); 183 gtk_widget_destroy( PlayList );
184 } 184 }
185 185
186 static void plDestroy( GtkObject * object,gpointer user_data ) 186 static void plDestroy( GtkObject * object,gpointer user_data )
187 { HidePlayList(); } 187 { HidePlayList(); }
188 188