[MPlayer-cvslog] r34456 - trunk/gui/ui/gtk/fileselect.c

ib subversion at mplayerhq.hu
Fri Dec 23 15:42:17 CET 2011


Author: ib
Date: Fri Dec 23 15:42:17 2011
New Revision: 34456

Log:
Add /home only to the file selector path list if HOME isn't set.

Modified:
   trunk/gui/ui/gtk/fileselect.c

Modified: trunk/gui/ui/gtk/fileselect.c
==============================================================================
--- trunk/gui/ui/gtk/fileselect.c	Fri Dec 23 15:39:39 2011	(r34455)
+++ trunk/gui/ui/gtk/fileselect.c	Fri Dec 23 15:42:17 2011	(r34456)
@@ -354,7 +354,7 @@ void ShowFileSelect( int type,int modal 
  }
  free( dir );
  if ( getenv( "HOME" ) ) fsTopList_items=g_list_append( fsTopList_items,getenv( "HOME" ) );
- fsTopList_items=g_list_append( fsTopList_items,"/home" );
+ else fsTopList_items=g_list_append( fsTopList_items,"/home" );
  if (stat( "/media",&f ) == 0) fsTopList_items=g_list_append( fsTopList_items,"/media" );
  if (stat( "/mnt",&f ) == 0) fsTopList_items=g_list_append( fsTopList_items,"/mnt" );
  fsTopList_items=g_list_append( fsTopList_items,"/" );


More information about the MPlayer-cvslog mailing list