From 801accf74619c80849379b8fa7685100bc5b14d6 Mon Sep 17 00:00:00 2001 From: Bastien Nocera Date: Tue, 23 Jan 2018 11:52:34 +0100 Subject: [PATCH] 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 --- gio/gnotification.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gio/gnotification.c b/gio/gnotification.c index 9861c040b..8e837ed03 100644 --- a/gio/gnotification.c +++ b/gio/gnotification.c @@ -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; } /**