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:
Adrian Perez de Castro 2017-07-11 22:28:50 +03:00 committed by Matthias Clasen
parent 9a31103ebb
commit f8a88a768d

View File

@ -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;
}