Method
XdpPortaltrash_file
Declaration [src]
void
xdp_portal_trash_file (
XdpPortal* portal,
const char* path,
GCancellable* cancellable,
GAsyncReadyCallback callback,
gpointer data
)
Description [src]
Sends the file at path to the trash can.
This method completes asynchronously. Use xdp_portal_trash_file_finish() inside the GAsyncReadyCallback to obtain the result of the operation.
Parameters
path-
Type:
const char*The path for a local file.
The data is owned by the caller of the method. The value is a NUL terminated UTF-8 string. cancellable-
Type:
GCancellableOptional
GCancellable.The argument can be NULL.The data is owned by the caller of the method. callback-
Type:
GAsyncReadyCallbackA callback to call when the request is done.
The argument can be NULL. data-
Type:
gpointerData to pass to
callback.The argument can be NULL.The data is owned by the caller of the method.