Merge branch 'app_name' into 'main'

gfdonotificationbackend: set app_name if available

Closes #2069

See merge request GNOME/glib!2159
This commit is contained in:
Philip Withnall 2021-06-16 11:07:55 +00:00
commit 9d694f636f

View File

@ -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),