Mercurial > mplayer.hg
diff Gui/mplayer/gtk/fs.c @ 9056:3086611e8213
- add subcp
- fix some 10l in gui
- fix one 10l bug in subreader
author | pontscho |
---|---|
date | Tue, 21 Jan 2003 19:12:46 +0000 |
parents | 4a42c0604ce1 |
children | 731e5dc57436 |
line wrap: on
line diff
--- a/Gui/mplayer/gtk/fs.c Tue Jan 21 13:33:40 2003 +0000 +++ b/Gui/mplayer/gtk/fs.c Tue Jan 21 19:12:46 2003 +0000 @@ -334,7 +334,12 @@ { int i; - for ( i=0;i < fsPersistant_MaxPos;i++ ) if ( fsHistory[i] && !strcmp( fsHistory[i],subject ) ) return 0; + 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; + } gfree( (void **)&fsHistory[fsPersistant_MaxPos - 1] ); for ( i=fsPersistant_MaxPos - 1;i;i-- ) fsHistory[i]=fsHistory[i - 1]; fsHistory[0]=gstrdup( subject );