Mercurial > mplayer.hg
comparison Gui/mplayer/gtk/fs.c @ 9192:c167de07f81d
save only video files place
(eh)
author | pontscho |
---|---|
date | Sat, 01 Feb 2003 09:00:35 +0000 |
parents | aa55f2f0b057 |
children | bb4ae7a49e33 |
comparison
equal
deleted
inserted
replaced
9191:21920dfcc37c | 9192:c167de07f81d |
---|---|
219 gtk_clist_set_column_width( GTK_CLIST( list ),0,17 ); | 219 gtk_clist_set_column_width( GTK_CLIST( list ),0,17 ); |
220 gtk_clist_select_row( GTK_CLIST( list ),0,1 ); | 220 gtk_clist_select_row( GTK_CLIST( list ),0,1 ); |
221 gtk_widget_show( list ); | 221 gtk_widget_show( list ); |
222 } | 222 } |
223 | 223 |
224 int fs_PersistantHistory( char *subject ); /* forward declaration */ | 224 void fs_PersistantHistory( char *subject ); /* forward declaration */ |
225 | 225 |
226 void ShowFileSelect( int type,int modal ) | 226 void ShowFileSelect( int type,int modal ) |
227 { | 227 { |
228 int i; | 228 int i; |
229 char * tmp = NULL; | 229 char * tmp = NULL; |
330 gtk_widget_hide( fsFileSelect ); | 330 gtk_widget_hide( fsFileSelect ); |
331 gtk_widget_destroy( fsFileSelect ); | 331 gtk_widget_destroy( fsFileSelect ); |
332 fsFileSelect=NULL; | 332 fsFileSelect=NULL; |
333 } | 333 } |
334 | 334 |
335 int fs_PersistantHistory( char * subject ) | 335 void fs_PersistantHistory( char * subject ) |
336 { | 336 { |
337 int i; | 337 int i; |
338 | |
339 if ( fsType != fsVideoSelector ) return; | |
338 | 340 |
339 for ( i=0;i < fsPersistant_MaxPos;i++ ) | 341 for ( i=0;i < fsPersistant_MaxPos;i++ ) |
340 if ( fsHistory[i] && !strcmp( fsHistory[i],subject ) ) | 342 if ( fsHistory[i] && !strcmp( fsHistory[i],subject ) ) |
341 { | 343 { |
342 char * tmp = fsHistory[i]; fsHistory[i]=fsHistory[0]; fsHistory[0]=tmp; | 344 char * tmp = fsHistory[i]; fsHistory[i]=fsHistory[0]; fsHistory[0]=tmp; |
343 return 0; | 345 return; |
344 } | 346 } |
345 gfree( (void **)&fsHistory[fsPersistant_MaxPos - 1] ); | 347 gfree( (void **)&fsHistory[fsPersistant_MaxPos - 1] ); |
346 for ( i=fsPersistant_MaxPos - 1;i;i-- ) fsHistory[i]=fsHistory[i - 1]; | 348 for ( i=fsPersistant_MaxPos - 1;i;i-- ) fsHistory[i]=fsHistory[i - 1]; |
347 fsHistory[0]=gstrdup( subject ); | 349 fsHistory[0]=gstrdup( subject ); |
348 | |
349 return 0; | |
350 } | 350 } |
351 //----------------------------------------------- | 351 //----------------------------------------------- |
352 | 352 |
353 void fs_fsFilterCombo_activate( GtkEditable * editable,gpointer user_data ) | 353 void fs_fsFilterCombo_activate( GtkEditable * editable,gpointer user_data ) |
354 { | 354 { |