Skip to content
  • Darin Adler's avatar
    Reimplemented the delete command to use NautilusFile instead of · f026b4a2
    Darin Adler authored
    	going directly to the file system.
    
    	* libnautilus/gnome-icon-container.h,
    	libnautilus/gnome-icon-container.c
    	(gnome_icon_container_clear_selected_items),
    	(gnome_icon_container_remove): Got rid of the call that removes
    	all the icons in the selection and replaced it with a call that
    	removes a specific icon.
    
    	* libnautilus/nautilus-directory.h,
    	libnautilus/nautilus-directory.c
    	(nautilus_directory_initialize_class), (nautilus_file_unref),
    	(nautilus_file_detach), (nautilus_file_free),
    	(nautilus_file_delete), (nautilus_file_is_gone): Implemented a
    	call to delete a file and emit the files_removed signal as needed.
    
    	* src/file-manager/fm-directory-view.h,
    	src/file-manager/fm-directory-view.c
    	(fm_directory_view_delete_selection),
    	(fm_directory_view_begin_adding_entries),
    	(fm_directory_view_add_entry),
    	(fm_directory_view_done_adding_entries), (display_pending_files),
    	(add_or_remove_files), (add_files_cb), (remove_files_cb),
    	(delete_one): Changed the delete implementation to call
    	nautilus_file_delete and got rid of the explicit call to
    	delete_selection. The views now will remove their entries in
    	response to the change in the model.
    
    	* src/file-manager/fm-directory-view-icons.c
    	(fm_directory_view_icons_remove_entry),
    	(fm_directory_view_icons_delete_selection),
    	src/file-manager/fm-directory-view-list.c
    	(fm_directory_view_list_remove_entry),
    	(fm_directory_view_list_delete_selection): Eliminated the
    	delete_selection function in favor of the remove_entry function.
    f026b4a2
To find the state of this project's repository at the time of any of these versions, check out the tags.