Skip to content

notification: Implement version2 of the interface#147

Merged
GeorgesStavracas merged 3 commits intoflatpak:mainfrom
jsparber:implement_v2_notification_spec
Nov 27, 2024
Merged

notification: Implement version2 of the interface#147
GeorgesStavracas merged 3 commits intoflatpak:mainfrom
jsparber:implement_v2_notification_spec

Conversation

@jsparber
Copy link
Contributor

@jsparber jsparber commented Mar 8, 2024

Implement the new portal frontend in libportal flatpak/xdg-desktop-portal#1298

@jsparber jsparber force-pushed the implement_v2_notification_spec branch 2 times, most recently from bbe8883 to 57d6202 Compare April 11, 2024 14:38
@jsparber jsparber changed the title Implement v2 notification spec notification v2 specs: Allow passing GFileIcon, sound and add additional properties Apr 11, 2024
@jsparber jsparber marked this pull request as ready for review April 16, 2024 13:31
@jsparber jsparber force-pushed the implement_v2_notification_spec branch 3 times, most recently from 050fe36 to 03dd58c Compare April 23, 2024 14:41
@jsparber jsparber force-pushed the implement_v2_notification_spec branch 2 times, most recently from 595a948 to ff872a1 Compare April 23, 2024 15:48
@swick
Copy link
Contributor

swick commented Apr 23, 2024

Might want to put the autofd stuff into a new commit but otherwise this LGTM.

@jsparber jsparber force-pushed the implement_v2_notification_spec branch from ff872a1 to 7c39eb4 Compare April 25, 2024 11:10
@jsparber jsparber force-pushed the implement_v2_notification_spec branch 2 times, most recently from f919856 to 7a202b4 Compare July 3, 2024 16:46
@jsparber jsparber force-pushed the implement_v2_notification_spec branch 3 times, most recently from e0fa651 to 5a84acf Compare July 15, 2024 08:38
@swick
Copy link
Contributor

swick commented Oct 18, 2024

xdg-desktop-portal now depends on this PR

@jsparber jsparber force-pushed the implement_v2_notification_spec branch from 5a84acf to 14c0ec6 Compare October 25, 2024 16:02
@jsparber jsparber changed the title notification v2 specs: Allow passing GFileIcon, sound and add additional properties notification: Implement version2 of the interface Oct 25, 2024
@jsparber
Copy link
Contributor Author

I reworked this MR to keep backwards compatibility. I didn't fully test it yet, therefore i'm marking it as a draft.

@jsparber jsparber marked this pull request as draft October 25, 2024 16:07
@jsparber jsparber force-pushed the implement_v2_notification_spec branch from 14c0ec6 to 938e92f Compare October 28, 2024 12:30
@jsparber jsparber force-pushed the implement_v2_notification_spec branch 3 times, most recently from e3dd306 to 4c6b996 Compare October 29, 2024 15:29
@jsparber jsparber marked this pull request as ready for review October 29, 2024 15:30
@jsparber
Copy link
Contributor Author

Should be ready for review. I changed the MR to keep backwards compatibility and some tests to make sure it actually works.

@jsparber jsparber force-pushed the implement_v2_notification_spec branch 4 times, most recently from fe0465b to ae9ac48 Compare October 29, 2024 16:45
@jsparber jsparber force-pushed the implement_v2_notification_spec branch 3 times, most recently from d3c9817 to 70365d8 Compare November 5, 2024 10:53
@jsparber jsparber force-pushed the implement_v2_notification_spec branch from 70365d8 to 843cad4 Compare November 22, 2024 16:19
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.
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.
@jsparber jsparber force-pushed the implement_v2_notification_spec branch from 843cad4 to d7634ce Compare November 27, 2024 10:22
@GeorgesStavracas GeorgesStavracas merged commit d19cbbe into flatpak:main Nov 27, 2024
@GeorgesStavracas GeorgesStavracas added this to the 0.9 milestone Nov 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants