summaryrefslogtreecommitdiff
path: root/libnautilus-extensions/nautilus-directory.h
diff options
context:
space:
mode:
authorDarin Adler <darin@src.gnome.org>2000-03-08 02:32:00 +0000
committerDarin Adler <darin@src.gnome.org>2000-03-08 02:32:00 +0000
commitf026b4a2cee5417a6660d0fa0b0e71438cc59178 (patch)
tree6029a39726bd1ed90bc60d6c2e826f33a53b8068 /libnautilus-extensions/nautilus-directory.h
parent6c09e03e878e509ded79e082a3f15544b1997422 (diff)
downloadnautilus-f026b4a2cee5417a6660d0fa0b0e71438cc59178.tar.gz
Reimplemented the delete command to use NautilusFile instead of
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.
Diffstat (limited to 'libnautilus-extensions/nautilus-directory.h')
-rw-r--r--libnautilus-extensions/nautilus-directory.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/libnautilus-extensions/nautilus-directory.h b/libnautilus-extensions/nautilus-directory.h
index f77ef0183..35058f26b 100644
--- a/libnautilus-extensions/nautilus-directory.h
+++ b/libnautilus-extensions/nautilus-directory.h
@@ -130,6 +130,7 @@ NautilusFile * nautilus_file_get (const char
/* Basic operations on file objects. */
void nautilus_file_ref (NautilusFile *file);
void nautilus_file_unref (NautilusFile *file);
+void nautilus_file_delete (NautilusFile *file);
/* Basic attributes for file objects. */
char * nautilus_file_get_name (NautilusFile *file);
@@ -143,6 +144,8 @@ gboolean nautilus_file_is_directory (NautilusFile
guint nautilus_file_get_directory_item_count (NautilusFile *file,
gboolean ignore_invisible_items);
GList * nautilus_file_get_keywords (NautilusFile *file);
+void nautilus_file_set_keywords (NautilusFile *file,
+ GList *keywords);
/* Simple getting and setting top-level metadata. */
char * nautilus_file_get_metadata (NautilusFile *file,