mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-09-27 17:52:58 +02:00
GNotification: Don't ignore set_urgent()'s argument
set_urgent() would behave is if @urgent was always true. The regression
was introduced in commit 01098e34c1
https://bugzilla.gnome.org/show_bug.cgi?id=792777
This commit is contained in:
committed by
Philip Withnall
parent
cea72036e3
commit
801accf746
@@ -319,7 +319,9 @@ g_notification_set_urgent (GNotification *notification,
|
|||||||
{
|
{
|
||||||
g_return_if_fail (G_IS_NOTIFICATION (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;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user