Method
XdpPortalset_wallpaper
Declaration [src]
void
xdp_portal_set_wallpaper (
XdpPortal* portal,
XdpParent* parent,
const char* uri,
XdpWallpaperFlags flags,
GCancellable* cancellable,
GAsyncReadyCallback callback,
gpointer data
)
Description [src]
Sets a desktop background image, given by a uri.
This method completes asynchronously. Use xdp_portal_set_wallpaper_finish() inside the GAsyncReadyCallback to obtain the result of the operation.
Parameters
parent-
Type:
XdpParentParent window information.
The argument can be NULL.The data is owned by the caller of the method. uri-
Type:
const char*The URI to use.
The data is owned by the caller of the method. The value is a NUL terminated UTF-8 string. flags-
Type:
XdpWallpaperFlagsOptions for this call.
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.