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.

Parameters

path const char*
 

The path for a local file.

 The data is owned by the caller of the function.
 The string is a NUL terminated UTF-8 string.
cancellable GCancellable*
 

Optional GCancellable

 The argument can be NULL.
 The data is owned by the caller of the function.
callback GAsyncReadyCallback
 

A callback to call when the request is done.

data gpointer
 

Data to pass to callback.