[glib: 1/2] gfdonotificationbackend: set app_name if available
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib: 1/2] gfdonotificationbackend: set app_name if available
- Date: Wed, 16 Jun 2021 11:07:56 +0000 (UTC)
commit 53632c84d89a3534e901c3f8c54524ec06386ac6
Author: André Apitzsch <git apitzsch eu>
Date: Tue Jun 15 20:45:06 2021 +0200
gfdonotificationbackend: set app_name if available
Fixes: #2069
gio/gfdonotificationbackend.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/gio/gfdonotificationbackend.c b/gio/gfdonotificationbackend.c
index b6fbfd2e2..4a0a557d6 100644
--- a/gio/gfdonotificationbackend.c
+++ b/gio/gfdonotificationbackend.c
@@ -257,6 +257,7 @@ call_notify (GDBusConnection *con,
GVariantBuilder hints_builder;
GIcon *icon;
GVariant *parameters;
+ const gchar *app_name;
const gchar *body;
guchar urgency;
@@ -322,10 +323,11 @@ call_notify (GDBusConnection *con,
}
}
+ app_name = g_get_application_name ();
body = g_notification_get_body (notification);
parameters = g_variant_new ("(susssasa{sv}i)",
- "", /* app name */
+ app_name ? app_name : "",
replace_id,
"", /* app icon */
g_notification_get_title (notification),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]