mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-10 03:16:17 +01:00
Map G_NOTIFICATION_PRIORITY_HIGH to NOTIFY_URGENCY_NORMAL
When using the Freedesktop backend for GNotification, it seems like a better idea to map G_NOTIFICATION_PRIORITY_HIGH to NOTIFY_URGENCY_NORMAL (instead of NOTIFY_URGENCY_CRITICAL) provided that the difference between GNotification's NORMAL and HIGH priorities is minor. Signed-off-by: Adrian Perez de Castro <aperez@igalia.com> https://bugzilla.gnome.org/show_bug.cgi?id=784815
This commit is contained in:
parent
9a31103ebb
commit
f8a88a768d
@ -200,9 +200,9 @@ urgency_from_priority (GNotificationPriority priority)
|
||||
|
||||
default:
|
||||
case G_NOTIFICATION_PRIORITY_NORMAL:
|
||||
case G_NOTIFICATION_PRIORITY_HIGH:
|
||||
return 1;
|
||||
|
||||
case G_NOTIFICATION_PRIORITY_HIGH:
|
||||
case G_NOTIFICATION_PRIORITY_URGENT:
|
||||
return 2;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user