mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-23 18:52:09 +01: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 01098e34c188b4ec93944e14dbece6818d786aec https://bugzilla.gnome.org/show_bug.cgi?id=792777
This commit is contained in:
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;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user