Mercurial > mplayer.hg
comparison gui/ui/gtk/fileselect.c @ 34368:dbb38c5293b0
Add /home only to the file selector path list if HOME isn't set.
author | ib |
---|---|
date | Fri, 23 Dec 2011 14:42:17 +0000 |
parents | b370a9fd85b3 |
children | a650895d50a5 |
comparison
equal
deleted
inserted
replaced
34367:b370a9fd85b3 | 34368:dbb38c5293b0 |
---|---|
352 fsTopList_items=g_list_prepend( fsTopList_items,fsSelectedDirectoryUtf8 ); | 352 fsTopList_items=g_list_prepend( fsTopList_items,fsSelectedDirectoryUtf8 ); |
353 } | 353 } |
354 } | 354 } |
355 free( dir ); | 355 free( dir ); |
356 if ( getenv( "HOME" ) ) fsTopList_items=g_list_append( fsTopList_items,getenv( "HOME" ) ); | 356 if ( getenv( "HOME" ) ) fsTopList_items=g_list_append( fsTopList_items,getenv( "HOME" ) ); |
357 fsTopList_items=g_list_append( fsTopList_items,"/home" ); | 357 else fsTopList_items=g_list_append( fsTopList_items,"/home" ); |
358 if (stat( "/media",&f ) == 0) fsTopList_items=g_list_append( fsTopList_items,"/media" ); | 358 if (stat( "/media",&f ) == 0) fsTopList_items=g_list_append( fsTopList_items,"/media" ); |
359 if (stat( "/mnt",&f ) == 0) fsTopList_items=g_list_append( fsTopList_items,"/mnt" ); | 359 if (stat( "/mnt",&f ) == 0) fsTopList_items=g_list_append( fsTopList_items,"/mnt" ); |
360 fsTopList_items=g_list_append( fsTopList_items,"/" ); | 360 fsTopList_items=g_list_append( fsTopList_items,"/" ); |
361 gtk_combo_set_popdown_strings( GTK_COMBO( fsCombo4 ),fsTopList_items ); | 361 gtk_combo_set_popdown_strings( GTK_COMBO( fsCombo4 ),fsTopList_items ); |
362 | 362 |