Mercurial > mplayer.hg
comparison Gui/mplayer/gtk/pl.c @ 6755:a31b9f15cbff
- fix audio equalizer
- rewrite video equalizer handling (i teszted with mga g400 [x]mga,xv,xvidix and radeon xv,xvidix )
- fix some small gtk bug
- i dunno, i don't remember ... :)
author | pontscho |
---|---|
date | Fri, 19 Jul 2002 20:51:48 +0000 |
parents | cc917a581b6e |
children | ded48a755830 |
comparison
equal
deleted
inserted
replaced
6754:c925dd9372f1 | 6755:a31b9f15cbff |
---|---|
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 ); | 172 gtk_widget_show( PlayList ); gtkVisible++; |
173 } | 173 } |
174 | 174 |
175 void HidePlayList( void ) | 175 void HidePlayList( void ) |
176 { | 176 { |
177 if ( !gtkVPlaylist ) return; | |
177 gtkVPlaylist=NrOfSelected=NrOfEntrys=0; | 178 gtkVPlaylist=NrOfSelected=NrOfEntrys=0; |
178 if ( CLListSelected ) free( CLListSelected ); CLListSelected=NULL; | 179 if ( CLListSelected ) free( CLListSelected ); CLListSelected=NULL; |
179 if ( CLFileSelected ) free( CLFileSelected ); CLFileSelected=NULL; | 180 if ( CLFileSelected ) free( CLFileSelected ); CLFileSelected=NULL; |
180 if ( old_path ) free( old_path ); old_path=strdup( current_path ); | 181 if ( old_path ) free( old_path ); old_path=strdup( current_path ); |
181 gtk_widget_hide( PlayList ); | 182 gtk_widget_hide( PlayList ); |
182 gtk_widget_destroy( PlayList ); | 183 gtk_widget_destroy( PlayList ); gtkVisible--; |
183 } | 184 } |
184 | 185 |
185 static void plDestroy( GtkObject * object,gpointer user_data ) | 186 static void plDestroy( GtkObject * object,gpointer user_data ) |
186 { HidePlayList(); } | 187 { HidePlayList(); } |
187 | 188 |