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

ib subversion at mplayerhq.hu
Thu Mar 28 16:33:37 CET 2013


Author: ib
Date: Thu Mar 28 16:33:37 2013
New Revision: 36065

Log:
Cosmetic: Rename fs_glist_add() fs_AddPath().

Modified:
   trunk/gui/dialog/fileselect.c

Modified: trunk/gui/dialog/fileselect.c
==============================================================================
--- trunk/gui/dialog/fileselect.c	Thu Mar 28 13:03:17 2013	(r36064)
+++ trunk/gui/dialog/fileselect.c	Thu Mar 28 16:33:37 2013	(r36065)
@@ -254,7 +254,7 @@ static void CheckDir( GtkWidget * list )
  gtk_widget_show( list );
 }
 
-static GList *fs_glist_add (GList *list, gpointer data, GtkPositionType pos)
+static GList *fs_AddPath (GList *list, gpointer data, GtkPositionType pos)
 {
   if (!g_list_find_custom(list, data, (GCompareFunc) strcmp))
   {
@@ -270,7 +270,7 @@ static void fs_AddPathUtf8 (const char *
   gchar *utf8name;
 
   utf8name = g_filename_display_name(name);
-  fsTopList_items = fs_glist_add(fsTopList_items, utf8name, pos);
+  fsTopList_items = fs_AddPath(fsTopList_items, utf8name, pos);
   g_hash_table_insert(fsPathTable, strdup(utf8name), strdup(name));
 }
 
@@ -757,10 +757,10 @@ void ShowFileSelect( int type,int modal 
  free( dir );
  fname = getenv( "HOME" );
  if ( fname ) fs_AddPathUtf8(fname, GTK_POS_BOTTOM);
- else fsTopList_items=fs_glist_add( fsTopList_items,g_strdup( "/home" ),GTK_POS_BOTTOM );
- if (stat( "/media",&f ) == 0) fsTopList_items=fs_glist_add( fsTopList_items,g_strdup( "/media" ),GTK_POS_BOTTOM );
- if (stat( "/mnt",&f ) == 0) fsTopList_items=fs_glist_add( fsTopList_items,g_strdup( "/mnt" ),GTK_POS_BOTTOM );
- fsTopList_items=fs_glist_add( fsTopList_items,g_strdup( "/" ),GTK_POS_BOTTOM );
+ else fsTopList_items=fs_AddPath( fsTopList_items,g_strdup( "/home" ),GTK_POS_BOTTOM );
+ if (stat( "/media",&f ) == 0) fsTopList_items=fs_AddPath( fsTopList_items,g_strdup( "/media" ),GTK_POS_BOTTOM );
+ if (stat( "/mnt",&f ) == 0) fsTopList_items=fs_AddPath( fsTopList_items,g_strdup( "/mnt" ),GTK_POS_BOTTOM );
+ fsTopList_items=fs_AddPath( fsTopList_items,g_strdup( "/" ),GTK_POS_BOTTOM );
  gtk_combo_set_popdown_strings( GTK_COMBO( fsCombo4 ),fsTopList_items );
 
  gtk_widget_grab_focus( fsFNameList );


More information about the MPlayer-cvslog mailing list