mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-12 20:36:15 +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;
|
GVariantBuilder hints_builder;
|
||||||
GIcon *icon;
|
GIcon *icon;
|
||||||
GVariant *parameters;
|
GVariant *parameters;
|
||||||
|
const gchar *app_name;
|
||||||
const gchar *body;
|
const gchar *body;
|
||||||
guchar urgency;
|
guchar urgency;
|
||||||
|
|
||||||
@ -322,10 +323,11 @@ call_notify (GDBusConnection *con,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
app_name = g_get_application_name ();
|
||||||
body = g_notification_get_body (notification);
|
body = g_notification_get_body (notification);
|
||||||
|
|
||||||
parameters = g_variant_new ("(susssasa{sv}i)",
|
parameters = g_variant_new ("(susssasa{sv}i)",
|
||||||
"", /* app name */
|
app_name ? app_name : "",
|
||||||
replace_id,
|
replace_id,
|
||||||
"", /* app icon */
|
"", /* app icon */
|
||||||
g_notification_get_title (notification),
|
g_notification_get_title (notification),
|
||||||
|
Loading…
Reference in New Issue
Block a user