# HG changeset patch # User pontscho # Date 1044090035 0 # Node ID c167de07f81de7651d236d72fa5365bd1921625b # Parent 21920dfcc37ce87486dee80da95d5ace35f42b0c save only video files place (eh) diff -r 21920dfcc37c -r c167de07f81d Gui/mplayer/gtk/fs.c --- a/Gui/mplayer/gtk/fs.c Sat Feb 01 08:46:17 2003 +0000 +++ b/Gui/mplayer/gtk/fs.c Sat Feb 01 09:00:35 2003 +0000 @@ -221,7 +221,7 @@ gtk_widget_show( list ); } -int fs_PersistantHistory( char *subject ); /* forward declaration */ +void fs_PersistantHistory( char *subject ); /* forward declaration */ void ShowFileSelect( int type,int modal ) { @@ -332,21 +332,21 @@ fsFileSelect=NULL; } -int fs_PersistantHistory( char * subject ) +void fs_PersistantHistory( char * subject ) { int i; + if ( fsType != fsVideoSelector ) return; + for ( i=0;i < fsPersistant_MaxPos;i++ ) if ( fsHistory[i] && !strcmp( fsHistory[i],subject ) ) { char * tmp = fsHistory[i]; fsHistory[i]=fsHistory[0]; fsHistory[0]=tmp; - return 0; + return; } gfree( (void **)&fsHistory[fsPersistant_MaxPos - 1] ); for ( i=fsPersistant_MaxPos - 1;i;i-- ) fsHistory[i]=fsHistory[i - 1]; fsHistory[0]=gstrdup( subject ); - - return 0; } //-----------------------------------------------