[glib: 2/3] gfdonotificationbackend: Pass on category
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib: 2/3] gfdonotificationbackend: Pass on category
- Date: Tue, 3 Aug 2021 13:44:17 +0000 (UTC)
commit 8704c521fd5fe37c053717d6eb18c329ea4f566c
Author: Guido Günther <agx sigxcpu org>
Date: Wed Jul 28 16:56:05 2021 +0200
gfdonotificationbackend: Pass on category
gio/gfdonotificationbackend.c | 6 ++++++
1 file changed, 6 insertions(+)
---
diff --git a/gio/gfdonotificationbackend.c b/gio/gfdonotificationbackend.c
index 4a0a557d6..312ad1e0d 100644
--- a/gio/gfdonotificationbackend.c
+++ b/gio/gfdonotificationbackend.c
@@ -303,6 +303,12 @@ call_notify (GDBusConnection *con,
g_variant_new_string (g_application_get_application_id (app)));
urgency = urgency_from_priority (g_notification_get_priority (notification));
g_variant_builder_add (&hints_builder, "{sv}", "urgency", g_variant_new_byte (urgency));
+ if (g_notification_get_category (notification))
+ {
+ g_variant_builder_add (&hints_builder, "{sv}", "category",
+ g_variant_new_string (g_notification_get_category (notification)));
+ }
+
icon = g_notification_get_icon (notification);
if (icon != NULL)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]