comparison 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
comparison
equal deleted inserted replaced
9055:4a42c0604ce1 9056:3086611e8213
332 332
333 int fs_PersistantHistory( char * subject ) 333 int fs_PersistantHistory( char * subject )
334 { 334 {
335 int i; 335 int i;
336 336
337 for ( i=0;i < fsPersistant_MaxPos;i++ ) if ( fsHistory[i] && !strcmp( fsHistory[i],subject ) ) return 0; 337 for ( i=0;i < fsPersistant_MaxPos;i++ )
338 if ( fsHistory[i] && !strcmp( fsHistory[i],subject ) )
339 {
340 char * tmp = fsHistory[i]; fsHistory[i]=fsHistory[0]; fsHistory[0]=tmp;
341 return 0;
342 }
338 gfree( (void **)&fsHistory[fsPersistant_MaxPos - 1] ); 343 gfree( (void **)&fsHistory[fsPersistant_MaxPos - 1] );
339 for ( i=fsPersistant_MaxPos - 1;i;i-- ) fsHistory[i]=fsHistory[i - 1]; 344 for ( i=fsPersistant_MaxPos - 1;i;i-- ) fsHistory[i]=fsHistory[i - 1];
340 fsHistory[0]=gstrdup( subject ); 345 fsHistory[0]=gstrdup( subject );
341 346
342 return 0; 347 return 0;