-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
notification: Implement version2 of the interface #147
base: main
Are you sure you want to change the base?
Conversation
bbe8883
to
57d6202
Compare
050fe36
to
03dd58c
Compare
595a948
to
ff872a1
Compare
Might want to put the autofd stuff into a new commit but otherwise this LGTM. |
ff872a1
to
7c39eb4
Compare
f919856
to
7a202b4
Compare
e0fa651
to
5a84acf
Compare
xdg-desktop-portal now depends on this PR |
5a84acf
to
14c0ec6
Compare
I reworked this MR to keep backwards compatibility. I didn't fully test it yet, therefore i'm marking it as a draft. |
14c0ec6
to
938e92f
Compare
e3dd306
to
4c6b996
Compare
Should be ready for review. I changed the MR to keep backwards compatibility and some tests to make sure it actually works. |
fe0465b
to
ae9ac48
Compare
libportal/notification.c
Outdated
} | ||
|
||
static void | ||
parse_notification (GTask *task) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's a bit unexpected that a function named parse_notification
does a dbus call. Maybe split the actual "parsing" out of here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i can rename the function to handle_notification()
ae9ac48
to
6e5941f
Compare
Calls to the notification interface version 1 fail if the vardict of `AddNotification` contains properties that aren't supported therefore check the version and filter the vardict. This will be even more relevant once features for version 2 are added in a future commit. The parse function is made async because it's needed in a future commit.
6e5941f
to
d3c9817
Compare
This introduces all new properties introduced in version 2 of the notification interface. It still keeps compatibility with older versions of the interface by adjusting and stripping properties that were not supported in version 1.
d3c9817
to
70365d8
Compare
Implement the new portal frontend in libportal flatpak/xdg-desktop-portal#1298