comparison Gui/mplayer/gtk/fs.c @ 9195:bb4ae7a49e33

add Type1 and fix one 10l
author pontscho
date Sat, 01 Feb 2003 09:44:40 +0000
parents c167de07f81d
children c2f31ca14a92
comparison
equal deleted inserted replaced
9194:d4df8b78bfc6 9195:bb4ae7a49e33
92 }; 92 };
93 93
94 char * fsFontFileNames[][2] = 94 char * fsFontFileNames[][2] =
95 { 95 {
96 #ifdef HAVE_FREETYPE 96 #ifdef HAVE_FREETYPE
97 { "font files (*.ttf)", "*.ttf" }, 97 { "True Type fonts (*.ttf)", "*.ttf" },
98 { "Type1 fonts (*.pfb)", "*.pfb" },
99 { "All fonts", "*.ttf,*.pfb" },
98 #else 100 #else
99 { "font files (*.desc)", "*.desc" }, 101 { "font files (*.desc)", "*.desc" },
100 #endif 102 #endif
101 { "All files", "*" }, 103 { "All files", "*" },
102 { NULL,NULL } 104 { NULL,NULL }
307 if ( fsTopList_items ) g_list_free( fsTopList_items ); fsTopList_items=NULL; 309 if ( fsTopList_items ) g_list_free( fsTopList_items ); fsTopList_items=NULL;
308 { 310 {
309 char * hist; 311 char * hist;
310 int i, c = 1; 312 int i, c = 1;
311 313
312 for ( i=0;i < fsPersistant_MaxPos;i++ ) 314 if ( fsType == fsVideoSelector )
313 if ( fsHistory[i] ) { fsTopList_items=g_list_append( fsTopList_items,fsHistory[i] ); c=0; } 315 {
316 for ( i=0;i < fsPersistant_MaxPos;i++ )
317 if ( fsHistory[i] ) { fsTopList_items=g_list_append( fsTopList_items,fsHistory[i] ); c=0; }
318 }
314 if ( c ) fsTopList_items=g_list_append( fsTopList_items,(gchar *)get_current_dir_name() ); 319 if ( c ) fsTopList_items=g_list_append( fsTopList_items,(gchar *)get_current_dir_name() );
315 } 320 }
316 if ( getenv( "HOME" ) ) fsTopList_items=g_list_append( fsTopList_items,getenv( "HOME" ) ); 321 if ( getenv( "HOME" ) ) fsTopList_items=g_list_append( fsTopList_items,getenv( "HOME" ) );
317 fsTopList_items=g_list_append( fsTopList_items,"/home" ); 322 fsTopList_items=g_list_append( fsTopList_items,"/home" );
318 fsTopList_items=g_list_append( fsTopList_items,"/mnt" ); 323 fsTopList_items=g_list_append( fsTopList_items,"/mnt" );