-
-
Notifications
You must be signed in to change notification settings - Fork 6
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: Use Right Values for Urgency Levels #189
Conversation
What happens if an app dev tries to send a |
Yes, the fdo spec has only low, normal and urgent priority. GLib (and the GTK portal) converts high to normal priority before sending the notification. So there won't be any change in the behaviour for developers. |
We shouldn't align to the "fdo" spec as it is the legacy implementation, the one we want to align with is the GTK/Portal implementation |
We implement the org.freedesktop.Notifications interface, so we are already aligned to the fdo spec. This PR only correct a error in the codebase. there's only tree levels, LOW, NORMAL, and URGENT. Using URGENT here is not only semantic correct, but allow us to have different behaviour for HIGH and URGENT notifications when/if we implement the Gtk/Portal interfaces in the future. |
urgency levels in the freedesktop specification and GLib.NotificationPriority values doesn't share the same values, this make the conversion between the two matches the conversion made by GLib before sending the notification.
eddf892
to
815efca
Compare
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.
Code looks good and fixes the listed issues. Can you update release notes with these issues please
Urgency levels in the freedesktop specification and GLib.NotificationPriority values doesn't share the same values, this make the conversion between the two matches the conversion made by GLib before sending the notification.
Closes: #196
Closes: #86