GNotification: Don't ignore set_urgent()'s argument

set_urgent() would behave is if @urgent was always true. The regression
was introduced in commit 01098e34c188b4ec93944e14dbece6818d786aec

https://bugzilla.gnome.org/show_bug.cgi?id=792777
This commit is contained in:
Bastien Nocera 2018-01-23 11:52:34 +01:00 committed by Philip Withnall
parent cea72036e3
commit 801accf746

View File

@ -319,7 +319,9 @@ g_notification_set_urgent (GNotification *notification,
{
g_return_if_fail (G_IS_NOTIFICATION (notification));
g_notification_set_priority (notification, G_NOTIFICATION_PRIORITY_URGENT);
notification->priority = urgent ?
G_NOTIFICATION_PRIORITY_URGENT :
G_NOTIFICATION_PRIORITY_NORMAL;
}
/**