6 Commits

Author SHA1 Message Date
Julian Sparber
a172f22c95 GPortalNotificationBackend: Parse GBytesIcon and GLoadableIcon for v2
The notification portal v2 accepts a sealable `memfd`. We can load
`GBytesIcon` and `GLoadableIcon` into a `memfd` automatically. For version 1
of the portal we can load `GLoadableIcon` into a `GBytesIcon` to
increase support for more `GIcon` formats.

This doesn't include `GEmblemedIcon` it's likely that it will be
deprecated soon https://gitlab.gnome.org/GNOME/glib/-/issues/3544

Closes: https://gitlab.gnome.org/GNOME/glib/-/issues/3108
2025-02-17 17:49:59 +01:00
Julian Sparber
06c94b9edf GPortalNotificationBackend: Get notification portal version
Version 2 of the portal has a lot of additional features but we need to
check the version before sending new properties because version 1 would
fail with the new properties. New properties are added in a future commit.
2025-02-17 17:49:59 +01:00
Julian Sparber
f5be07b755 GPortalNotificationBackend: Implement it's own serialization method
The portal and GTK notifications will diverge, since they follow
different specs. For now it wasn't a problem since the portal was
strongly limited and essentially the same as the org.gtk.Notifications
interface. The serialization code is mostly the same as the already existing
serialization code.
2025-02-17 17:49:59 +01:00
Philip Withnall
26409f19cd Add SPDX license headers for LGPL-2.1-or-later to various files
These have all been added manually, as I’ve finished all the files which
I can automatically detect.

All the license headers in this commit are for LGPL-2.1-or-later, and
all have been double-checked against the license paragraph in the file
header.

Signed-off-by: Philip Withnall <pwithnall@endlessos.org>

Helps: #1415
2022-06-01 12:44:23 +01:00
Sébastien Wilmet
3bf4a720c3 gio/: LGPLv2+ -> LGPLv2.1+
Sub-directories inside gio/ already processed in a previous commit:
- fam/
- gdbus-2.0/ (which contains only codegen/)
- gvdb/
- inotify/
- tests/
- win32/
- xdgmime/

Other sub-directories inside gio/:
- completion/: no license headers
- kqueue/: not LGPL, BSD-style license

https://bugzilla.gnome.org/show_bug.cgi?id=776504
2017-05-29 19:53:34 +02:00
Matthias Clasen
bd3fb2a15f Add a portal backend for GNotification
This talks to the org.freedesktop.portal.Notification portal
instead of directly to gnome-shell.

https://bugzilla.gnome.org/show_bug.cgi?id=768498
2016-07-07 23:48:34 -04:00