[MPlayer-cvslog] r32808 - trunk/gui/mplayer/gtk/fs.c

ib subversion at mplayerhq.hu
Fri Jan 21 16:20:00 CET 2011


Author: ib
Date: Fri Jan 21 16:20:00 2011
New Revision: 32808

Log:
Remove needless get_current_dir_name() calls
and unused parameter of CheckDir().

Modified:
   trunk/gui/mplayer/gtk/fs.c

Modified: trunk/gui/mplayer/gtk/fs.c
==============================================================================
--- trunk/gui/mplayer/gtk/fs.c	Thu Jan 20 20:08:32 2011	(r32807)
+++ trunk/gui/mplayer/gtk/fs.c	Fri Jan 21 16:20:00 2011	(r32808)
@@ -190,7 +190,7 @@ static void clist_append_fname(GtkWidget
   g_free(filename);
 }
 
-static void CheckDir( GtkWidget * list,char * directory )
+static void CheckDir( GtkWidget * list )
 {
  struct stat     fs;
  int             i;
@@ -379,7 +379,7 @@ static void fs_fsFilterCombo_activate( G
                                        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 @@ static void fs_fsFilterCombo_changed( Gt
 	  break;
    default: return;
   }
- CheckDir( fsFNameList,get_current_dir_name() );
+ CheckDir( fsFNameList );
 }
 
 static void fs_fsPathCombo_activate( GtkEditable * editable,
@@ -430,7 +430,7 @@ static void fs_fsPathCombo_activate( Gtk
 
  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 @@ static void fs_fsPathCombo_changed( GtkE
 
  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 @@ static void fs_Up_released( GtkButton * 
 {
  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 @@ static void fs_Ok_released( GtkButton * 
   {
    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;
   }


More information about the MPlayer-cvslog mailing list