Changeset 7776
- Timestamp:
- Jan 22, 2009, 10:04:37 PM (13 years ago)
- Location:
- branches/1.5x
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/1.5x/gtk/add-dialog.c
r7664 r7776 129 129 if( gtk_toggle_button_get_active( GTK_TOGGLE_BUTTON( data->trash_check ) ) ) 130 130 131 tr_file_trash_or_ unlink( data->filename );131 tr_file_trash_or_remove( data->filename ); 132 132 save_recent_destination( data->core, data->downloadDir ); 133 133 } -
branches/1.5x/gtk/tr-torrent.c
r7694 r7776 213 213 /* #1294: don't delete the source .torrent file if it's our internal copy */ 214 214 if( !is_internal ) 215 tr_file_trash_or_ unlink( source );215 tr_file_trash_or_remove( source ); 216 216 } 217 217 … … 319 319 tr_torrent_delete_files( TrTorrent * gtor ) 320 320 { 321 tr_torrentDeleteLocalData( tr_torrent_handle( gtor ), tr_file_trash_or_ unlink);321 tr_torrentDeleteLocalData( tr_torrent_handle( gtor ), tr_file_trash_or_remove ); 322 322 } 323 323 -
branches/1.5x/gtk/util.c
r7767 r7776 517 517 518 518 int 519 tr_file_trash_or_ unlink( const char * filename )519 tr_file_trash_or_remove( const char * filename ) 520 520 { 521 521 if( filename && *filename ) … … 530 530 g_clear_error( &err ); 531 531 g_object_unref( G_OBJECT( file ) ); 532 533 534 #endif 535 if( !trashed ) { 536 if( g_unlink( filename ) ) { 537 const int err = errno; 538 g_message( "Unable to unlink file \"%s\": %s", filename, g_strerror( err ) ); 539 } 532 #endif 533 534 if( !trashed && g_remove( filename ) ) 535 { 536 const int err = errno; 537 g_message( "Unable to remove file \"%s\": %s", filename, g_strerror( err ) ); 540 538 } 541 539 } -
branches/1.5x/gtk/util.h
r7664 r7776 133 133 gpointer tr_object_ref_sink( gpointer object ); 134 134 135 int tr_file_trash_or_ unlink( const char * filename );135 int tr_file_trash_or_remove( const char * filename ); 136 136 137 137 #endif /* GTK_MAJOR_VERSION */ -
branches/1.5x/libtransmission/torrent.c
r7722 r7776 1899 1899 { 1900 1900 if( fileFunc == NULL ) 1901 fileFunc = unlink;1901 fileFunc = remove; 1902 1902 1903 1903 /* close all the files because we're about to delete them */
Note: See TracChangeset
for help on using the changeset viewer.