diff options
author | Alberts Muktupāvels <alberts.muktupavels@gmail.com> | 2020-04-06 16:32:09 +0300 |
---|---|---|
committer | Alberts Muktupāvels <alberts.muktupavels@gmail.com> | 2020-04-06 21:19:15 +0300 |
commit | 7425abd7c00b98b7dfe1e7c44f1effbe9db96f69 (patch) | |
tree | bd618c44c781bfab60db021f862b7db66bbe6ac2 /src/nautilus-dbus-manager.c | |
parent | 7adf189c8ddc3e62ff0c7f0f26af3d6316b0a302 (diff) | |
download | nautilus-7425abd7c00b98b7dfe1e7c44f1effbe9db96f69.tar.gz |
dbus-manager: add ask_confirmation parameter to EmptyTrash
https://gitlab.gnome.org/GNOME/nautilus/-/merge_requests/504
Diffstat (limited to 'src/nautilus-dbus-manager.c')
-rw-r--r-- | src/nautilus-dbus-manager.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/nautilus-dbus-manager.c b/src/nautilus-dbus-manager.c index 61441a6b5..56213268b 100644 --- a/src/nautilus-dbus-manager.c +++ b/src/nautilus-dbus-manager.c @@ -320,16 +320,17 @@ handle_move_uris2 (NautilusDBusFileOperations2 *object, /* FIXME: Needs a callback for maintaining alive the application */ static void -handle_empty_trash_internal (NautilusFileOperationsDBusData *dbus_data) +handle_empty_trash_internal (gboolean ask_confirmation, + NautilusFileOperationsDBusData *dbus_data) { - nautilus_file_operations_empty_trash (NULL, dbus_data); + nautilus_file_operations_empty_trash (NULL, ask_confirmation, dbus_data); } static gboolean handle_empty_trash (NautilusDBusFileOperations *object, GDBusMethodInvocation *invocation) { - handle_empty_trash_internal (NULL); + handle_empty_trash_internal (TRUE, NULL); nautilus_dbus_file_operations_complete_empty_trash (object, invocation); return TRUE; /* invocation was handled */ @@ -338,13 +339,14 @@ handle_empty_trash (NautilusDBusFileOperations *object, static gboolean handle_empty_trash2 (NautilusDBusFileOperations2 *object, GDBusMethodInvocation *invocation, + gboolean ask_confirmation, GVariant *platform_data) { g_autoptr (NautilusFileOperationsDBusData) dbus_data = NULL; dbus_data = nautilus_file_operations_dbus_data_new (platform_data); - handle_empty_trash_internal (dbus_data); + handle_empty_trash_internal (ask_confirmation, dbus_data); nautilus_dbus_file_operations2_complete_empty_trash (object, invocation); return TRUE; /* invocation was handled */ |