diff options
author | Jesse Stockall <jesse@cleverone.org> | 2007-02-06 10:26:33 +0000 |
---|---|---|
committer | Alexander Larsson <alexl@src.gnome.org> | 2007-02-06 10:26:33 +0000 |
commit | 726e8bd18e8459d2c9446233e11a16c6dee4b3b5 (patch) | |
tree | 4e08e8cc45749a293c226383fb2d9125214a92d7 /libnautilus-private/nautilus-file-operations.h | |
parent | 022573f6f649b3ee5b7c0bea5bde87dd966ac3c6 (diff) | |
download | nautilus-726e8bd18e8459d2c9446233e11a16c6dee4b3b5.tar.gz |
src/file-manager/fm-directory-view.c src/file-manager/fm-tree-view.c
2007-02-05 Jesse Stockall <jesse@cleverone.org>
* src/file-manager/fm-directory-view.c
* src/file-manager/fm-tree-view.c
* src/nautilus-places-sidebar.c
* libnautilus-private/nautilus-file-operations.[ch]
Prompts to empty trash when unmounting drives. Closes #138058
svn path=/trunk/; revision=12724
Diffstat (limited to 'libnautilus-private/nautilus-file-operations.h')
-rw-r--r-- | libnautilus-private/nautilus-file-operations.h | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/libnautilus-private/nautilus-file-operations.h b/libnautilus-private/nautilus-file-operations.h index 82afcc242..9400631ce 100644 --- a/libnautilus-private/nautilus-file-operations.h +++ b/libnautilus-private/nautilus-file-operations.h @@ -30,6 +30,8 @@ #include <gdk/gdkdnd.h> #include <gtk/gtkwidget.h> #include <libgnomevfs/gnome-vfs-types.h> +#include <libgnomevfs/gnome-vfs-utils.h> +#include <libgnomevfs/gnome-vfs-volume-monitor.h> typedef void (* NautilusCopyCallback) (GHashTable *debuting_uris, gpointer callback_data); @@ -38,6 +40,8 @@ typedef void (* NautilusNewFolderCallback) (const char *new_folder_uri, typedef void (* NautilusNewFileCallback) (const char *new_file_uri, gpointer callback_data); typedef void (* NautilusSetPermissionsCallback) (gpointer callback_data); +typedef void (* NautilusDeleteCallback) (GHashTable *debuting_uris, + gpointer callback_data); /* FIXME: int copy_action should be an enum */ @@ -69,7 +73,9 @@ void nautilus_file_operations_new_file_from_template (GtkWidget *p gpointer data); void nautilus_file_operations_delete (const GList *item_uris, - GtkWidget *parent_view); + GtkWidget *parent_view, + NautilusDeleteCallback done_callback, + gpointer done_callback_data); void nautilus_file_set_permissions_recursive (const char *directory, GnomeVFSFilePermissions file_permissions, @@ -79,4 +85,14 @@ void nautilus_file_set_permissions_recursive (const char *di NautilusSetPermissionsCallback callback, gpointer callback_data); +void nautilus_file_operations_unmount_volume (GtkWidget *parent_view, + GnomeVFSVolume *volume, + GnomeVFSVolumeOpCallback callback, + gpointer user_data); + +void nautilus_file_operations_unmount_drive (GtkWidget *parent_view, + GnomeVFSDrive *drive, + GnomeVFSVolumeOpCallback callback, + gpointer user_data); + #endif /* NAUTILUS_FILE_OPERATIONS_H */ |