comparison gui/ui/gtk/fileselect.c @ 34367:b370a9fd85b3

Cosmetic: Swap /mnt and /media in the file selector path list. This looks nicer if someone has both.
author ib
date Fri, 23 Dec 2011 14:39:39 +0000
parents b8a4787f363b
children dbb38c5293b0
comparison
equal deleted inserted replaced
34366:b8a4787f363b 34367:b370a9fd85b3
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 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( "/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" );
359 if (stat( "/media",&f ) == 0) fsTopList_items=g_list_append( fsTopList_items,"/media" );
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
363 gtk_widget_grab_focus( fsFNameList ); 363 gtk_widget_grab_focus( fsFNameList );
364 ((GtkCList *)fsFNameList)->focus_row = fsLastFNameListSelected; 364 ((GtkCList *)fsFNameList)->focus_row = fsLastFNameListSelected;