Top | ![]() |
![]() |
![]() |
![]() |
These functions let applications set desktop backgrounds.
The underlying portal is org.freedesktop.portal.Wallpaper.
void xdp_portal_set_wallpaper (XdpPortal *portal
,XdpParent *parent
,const char *uri
,gboolean show_preview
,XdpWallpaperTarget target
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer data
);
Sets a desktop background image, given by a uri.
portal |
||
parent |
parent window information |
|
uri |
the URI to use |
|
show_preview |
whether to show a preview dialog |
|
target |
where to set the wallpaper |
|
cancellable |
optional GCancellable. |
[nullable] |
callback |
a callback to call when the request is done. |
[scope async] |
data |
data to pass to |
[closure] |
gboolean xdp_portal_set_wallpaper_finish (XdpPortal *portal
,GAsyncResult *result
,GError **error
);
Finishes the open-uri request, and returns the result in the form of a boolean.