File: wallpaper-annotate-the-parent-window-as-nullalble.patch

package info (click to toggle)
libportal 0.6-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,280 kB
  • sloc: ansic: 7,646; javascript: 670; cpp: 463; sh: 162; makefile: 36; xml: 20
file content (25 lines) | stat: -rw-r--r-- 906 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
From: Peter Hutterer <peter.hutterer@who-t.net>
Date: Fri, 27 May 2022 14:00:18 +1000
Subject: wallpaper: annotate the parent window as nullalble

The C code allows for it to be NULL, let's make this in the bindings too
so we don't have to instantiate windows to test this.

Origin: upstream, 0.7, commit:28035015d89032ac92181bc351ea74a57a6ae18a
---
 libportal/wallpaper.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libportal/wallpaper.c b/libportal/wallpaper.c
index 65cfb08..1aa6f2e 100644
--- a/libportal/wallpaper.c
+++ b/libportal/wallpaper.c
@@ -278,7 +278,7 @@ set_wallpaper (WallpaperCall *call)
 /**
  * xdp_portal_set_wallpaper:
  * @portal: a [class@Portal]
- * @parent: parent window information
+ * @parent: (nullable): parent window information
  * @uri: the URI to use
  * @flags: options for this call
  * @cancellable: (nullable): optional [class@Gio.Cancellable]