changeset 32721:77ef1bcd464f

Remove needless get_current_dir_name() calls and unused parameter of CheckDir().
author ib
date Fri, 21 Jan 2011 15:20:00 +0000
parents 1afbc8e3ff55
children 25a3c1b7d090
files gui/mplayer/gtk/fs.c
diffstat 1 files changed, 7 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/gui/mplayer/gtk/fs.c	Thu Jan 20 19:08:32 2011 +0000
+++ b/gui/mplayer/gtk/fs.c	Fri Jan 21 15:20:00 2011 +0000
@@ -190,7 +190,7 @@
   g_free(filename);
 }
 
-static void CheckDir( GtkWidget * list,char * directory )
+static void CheckDir( GtkWidget * list )
 {
  struct stat     fs;
  int             i;
@@ -379,7 +379,7 @@
                                        gpointer user_data )
 {
  fsFilter=gtk_entry_get_text( GTK_ENTRY( user_data ) );
- CheckDir( fsFNameList,get_current_dir_name() );
+ CheckDir( fsFNameList );
 }
 
 static void fs_fsFilterCombo_changed( GtkEditable * editable,
@@ -419,7 +419,7 @@
 	  break;
    default: return;
   }
- CheckDir( fsFNameList,get_current_dir_name() );
+ CheckDir( fsFNameList );
 }
 
 static void fs_fsPathCombo_activate( GtkEditable * editable,
@@ -430,7 +430,7 @@
 
  str=gtk_entry_get_text( GTK_ENTRY( user_data ) );
  dirname = g_filename_from_utf8( str, -1, NULL, NULL, NULL );
- if ( chdir( dirname ) != -1 ) CheckDir( fsFNameList,get_current_dir_name() );
+ if ( chdir( dirname ) != -1 ) CheckDir( fsFNameList );
  g_free( dirname );
 }
 
@@ -442,7 +442,7 @@
 
  str=gtk_entry_get_text( GTK_ENTRY( user_data ) );
  dirname = g_filename_from_utf8( str, -1, NULL, NULL, NULL );
- if ( chdir( dirname ) != -1 ) CheckDir( fsFNameList,get_current_dir_name() );
+ if ( chdir( dirname ) != -1 ) CheckDir( fsFNameList );
  g_free( dirname );
 }
 
@@ -450,7 +450,7 @@
 {
  chdir( ".." );
  fsSelectedFile=fsThatDir;
- CheckDir( fsFNameList,get_current_dir_name() );
+ CheckDir( fsFNameList );
  gtk_entry_set_text( GTK_ENTRY( fsPathCombo ),(unsigned char *)get_current_dir_name_utf8() );
  return;
 }
@@ -466,7 +466,7 @@
   {
    chdir( fsSelectedFile );
    fsSelectedFile=fsThatDir;
-   CheckDir( fsFNameList,get_current_dir_name() );
+   CheckDir( fsFNameList );
    gtk_entry_set_text( GTK_ENTRY( fsPathCombo ),(unsigned char *)get_current_dir_name_utf8() );
    return;
   }