Mercurial > mplayer.hg
changeset 25993:782f62eb1953
cosmetics: indent, remove trailing whitespace
author | diego |
---|---|
date | Mon, 18 Feb 2008 19:39:10 +0000 |
parents | a9e86b2def64 |
children | 32e21d1beb48 |
files | gui/mplayer/gtk/fs.c |
diffstat | 1 files changed, 12 insertions(+), 12 deletions(-) [+] |
line wrap: on
line diff
--- a/gui/mplayer/gtk/fs.c Mon Feb 18 19:37:59 2008 +0000 +++ b/gui/mplayer/gtk/fs.c Mon Feb 18 19:39:10 2008 +0000 @@ -26,7 +26,7 @@ #ifndef __linux__ #define get_current_dir_name() getcwd(NULL, PATH_MAX) #else - extern char * get_current_dir_name( void ); +extern char * get_current_dir_name( void ); #endif gchar * fsSelectedFile = NULL; @@ -79,13 +79,13 @@ int fsLastSubtitleFilterSelected = -1; char * fsOtherFilterNames[][2] = - { + { { "All files", "*" }, { NULL,NULL } }; - + char * fsAudioFileNames[][2] = - { + { { "WAV files (*.wav)", "*.wav" }, { "MP3 files (*.mp2, *.mp3)", "*.mp2,*.mp3" }, { "OGG Vorbis files (*.ogg)", "*.ogg" }, @@ -187,7 +187,7 @@ if ( ( tmp[c] == ',' )||( tmp[c] == '\0' ) ) { tmp[c]=0; c=-1; - glob( Filter( tmp ),glob_param,NULL,&gg ); + glob( Filter( tmp ),glob_param,NULL,&gg ); glob_param=GLOB_APPEND; } } @@ -215,7 +215,7 @@ if ( fsFileSelect ) gtkActive( fsFileSelect ); else fsFileSelect=create_FileSelect(); - + fsType=type; switch ( type ) { @@ -280,7 +280,7 @@ struct stat f; char * dir = strdup( tmp ); - do + do { char * c = strrchr( dir,'/' ); stat( dir,&f ); @@ -289,14 +289,14 @@ } while ( strrchr( dir,'/' ) ); if ( dir[0] ) chdir( dir ); - + free( dir ); } - + if ( fsTopList_items ) g_list_free( fsTopList_items ); fsTopList_items=NULL; { int i, c = 1; - + if ( fsType == fsVideoSelector ) { for ( i=0;i < fsPersistant_MaxPos;i++ ) @@ -309,7 +309,7 @@ fsTopList_items=g_list_append( fsTopList_items,"/mnt" ); fsTopList_items=g_list_append( fsTopList_items,"/" ); gtk_combo_set_popdown_strings( GTK_COMBO( fsCombo4 ),fsTopList_items ); - + gtk_window_set_modal( GTK_WINDOW( fsFileSelect ),modal ); gtk_widget_show( fsFileSelect ); @@ -531,7 +531,7 @@ gtk_window_set_policy( GTK_WINDOW( fsFileSelect ),TRUE,TRUE,TRUE ); gtk_window_set_wmclass( GTK_WINDOW( fsFileSelect ),"FileSelect","MPlayer" ); fsColorMap=gdk_colormap_get_system(); - + gtk_widget_realize( fsFileSelect ); gtkAddIcon( fsFileSelect );