mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-17 23:24:51 +00:00
GtkNotificationDaemonNotification: Use markup for body if requested
This adds a new property `markup-body` that let's application set a body that includes markup.
This commit is contained in:
parent
6cf4f49919
commit
2f7c37809a
1 changed files with 3 additions and 1 deletions
|
|
@ -408,6 +408,7 @@ class GtkNotificationDaemonNotification extends MessageTray.Notification {
|
|||
const {
|
||||
title,
|
||||
body,
|
||||
'markup-body': markupBody,
|
||||
icon: gicon,
|
||||
urgent,
|
||||
priority,
|
||||
|
|
@ -423,7 +424,8 @@ class GtkNotificationDaemonNotification extends MessageTray.Notification {
|
|||
super({
|
||||
source,
|
||||
title: title.unpack(),
|
||||
body: body?.unpack(),
|
||||
body: markupBody?.unpack() ?? body?.unpack() ?? null,
|
||||
useBodyMarkup: !!markupBody,
|
||||
gicon: gicon
|
||||
? Gio.icon_deserialize(gicon) : null,
|
||||
datetime: time
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue