summaryrefslogtreecommitdiffstats
path: root/Gui
diff options
context:
space:
mode:
authorpontscho <pontscho@b3059339-0415-0410-9bf9-f77b7e298cf2>2003-02-01 09:00:35 +0000
committerpontscho <pontscho@b3059339-0415-0410-9bf9-f77b7e298cf2>2003-02-01 09:00:35 +0000
commit34512124e5a81bf82128f624faf76e1d9f448777 (patch)
tree5e9b98d444b876fce0bf8b1eaa8e60cd6d987cf0 /Gui
parent938866013210df33fd1f537a09db52e5359312b0 (diff)
downloadmpv-34512124e5a81bf82128f624faf76e1d9f448777.tar.bz2
mpv-34512124e5a81bf82128f624faf76e1d9f448777.tar.xz
save only video files place
(eh) git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9193 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'Gui')
-rw-r--r--Gui/mplayer/gtk/fs.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/Gui/mplayer/gtk/fs.c b/Gui/mplayer/gtk/fs.c
index e59a6fa6f5..59d87ab327 100644
--- a/Gui/mplayer/gtk/fs.c
+++ b/Gui/mplayer/gtk/fs.c
@@ -221,7 +221,7 @@ void CheckDir( GtkWidget * list,char * directory )
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 @@ void HideFileSelect( void )
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;
}
//-----------------------------------------------