[MPlayer-cvslog] r36035 - trunk/gui/dialog/fileselect.c

ib subversion at mplayerhq.hu
Thu Mar 21 12:19:34 CET 2013


Author: ib
Date: Thu Mar 21 12:19:34 2013
New Revision: 36035

Log:
Simplify if-clauses after r36034.

Modified:
   trunk/gui/dialog/fileselect.c

Modified: trunk/gui/dialog/fileselect.c
==============================================================================
--- trunk/gui/dialog/fileselect.c	Thu Mar 21 12:18:10 2013	(r36034)
+++ trunk/gui/dialog/fileselect.c	Thu Mar 21 12:19:34 2013	(r36035)
@@ -367,17 +367,11 @@ void ShowFileSelect( int type,int modal 
        if ( c ) c=gstrcmp( dir,fname );
       }
    }
-  if ( c && dir )
-   {
-     fs_AddPathUtf8(dir, GTK_POS_TOP);
-   }
+  if ( c && dir ) fs_AddPathUtf8(dir, GTK_POS_TOP);
  }
  free( dir );
  fname = getenv( "HOME" );
- if ( fname )
-  {
-   fs_AddPathUtf8(fname, GTK_POS_BOTTOM);
-  }
+ if ( fname ) fs_AddPathUtf8(fname, GTK_POS_BOTTOM);
  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" );


More information about the MPlayer-cvslog mailing list