Mercurial > mplayer.hg
changeset 35971:cb1b178d3670
Cosmetic: Rename fs_glist_add() fs_AddPath().
author | ib |
---|---|
date | Thu, 28 Mar 2013 15:33:37 +0000 |
parents | 90b6cc0747fb |
children | 0e6cd2cc0824 |
files | gui/dialog/fileselect.c |
diffstat | 1 files changed, 6 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/gui/dialog/fileselect.c Thu Mar 28 12:03:17 2013 +0000 +++ b/gui/dialog/fileselect.c Thu Mar 28 15:33:37 2013 +0000 @@ -254,7 +254,7 @@ 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 @@ 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 @@ 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 );