mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-10 03:16:17 +01:00
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:
commit
9d694f636f
@ -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),
|
||||
|
Loading…
Reference in New Issue
Block a user