[glib] GNotification: Don't ignore set_urgent()'s argument
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] GNotification: Don't ignore set_urgent()'s argument
- Date: Tue, 23 Jan 2018 14:24:31 +0000 (UTC)
commit 801accf74619c80849379b8fa7685100bc5b14d6
Author: Bastien Nocera <hadess hadess net>
Date: Tue Jan 23 11:52:34 2018 +0100
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 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/gio/gnotification.c b/gio/gnotification.c
index 9861c04..8e837ed 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;
}
/**
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]