summaryrefslogtreecommitdiff
path: root/libnautilus-private/nautilus-file-operations.h
diff options
context:
space:
mode:
authorChristian Neumair <cneumair@gnome.org>2008-07-19 12:12:00 +0000
committerChristian Neumair <cneumair@src.gnome.org>2008-07-19 12:12:00 +0000
commit82887543d718e332791dc8df79c9b4e1e8620db4 (patch)
tree272acdf115c271716d6ab47414197458fa7833ac /libnautilus-private/nautilus-file-operations.h
parent8f974b3021b93504b22eb73ae322618f5a1bd403 (diff)
downloadnautilus-82887543d718e332791dc8df79c9b4e1e8620db4.tar.gz
Add nautilus_file_operations_mount_volume_full(), which will issue a
2008-07-19 Christian Neumair <cneumair@gnome.org> * libnautilus-private/nautilus-file-operations.c (mount_callback_data_notify), (volume_mount_cb), (nautilus_file_operations_mount_volume), (nautilus_file_operations_mount_volume_full): * libnautilus-private/nautilus-file-operations.h: Add nautilus_file_operations_mount_volume_full(), which will issue a callback with an optional user data object, if the object is still alive after mounting. * src/nautilus-places-sidebar.c (add_place), (clicked_eject_button), (volume_mounted_cb), (open_selected_bookmark), (nautilus_places_sidebar_init), (nautilus_places_sidebar_dispose): Open files after mounting them. svn path=/trunk/; revision=14373
Diffstat (limited to 'libnautilus-private/nautilus-file-operations.h')
-rw-r--r--libnautilus-private/nautilus-file-operations.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/libnautilus-private/nautilus-file-operations.h b/libnautilus-private/nautilus-file-operations.h
index d9cd17ead..fd0f18510 100644
--- a/libnautilus-private/nautilus-file-operations.h
+++ b/libnautilus-private/nautilus-file-operations.h
@@ -38,6 +38,8 @@ typedef void (* NautilusOpCallback) (gpointer callback_data);
typedef void (* NautilusDeleteCallback) (GHashTable *debuting_uris,
gboolean user_cancel,
gpointer callback_data);
+typedef void (* NautilusMountCallback) (GVolume *volume,
+ GObject *callback_data_object);
/* FIXME: int copy_action should be an enum */
@@ -93,7 +95,11 @@ void nautilus_file_operations_unmount_mount (GtkWindow *par
void nautilus_file_operations_mount_volume (GtkWindow *parent_window,
GVolume *volume,
gboolean allow_autorun);
-
+void nautilus_file_operations_mount_volume_full (GtkWindow *parent_window,
+ GVolume *volume,
+ gboolean allow_autorun,
+ NautilusMountCallback mount_callback,
+ GObject *mount_callback_data_object);
void nautilus_file_operations_copy (GList *files,
GArray *relative_item_points,