Mercurial > dwindows
changeset 2330:58700e9fcba3
GTK3/4: Add call to g_set_prgname() with the Application ID.
This fixes apps showing as "GTK Application" instead of the name in the desktop file on Wayland.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Mon, 01 Mar 2021 01:31:12 +0000 |
parents | 47f8f950f377 |
children | addbd7db1e5c |
files | gtk3/dw.c gtk4/dw.c |
diffstat | 2 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/gtk3/dw.c Sun Feb 28 13:42:25 2021 +0000 +++ b/gtk3/dw.c Mon Mar 01 01:31:12 2021 +0000 @@ -2111,6 +2111,7 @@ g_signal_connect(G_OBJECT(action), "activate", G_CALLBACK(_dw_notification_handler), NULL); g_action_map_add_action(G_ACTION_MAP(_DWApp), G_ACTION(action)); #endif + g_set_prgname(_dw_app_id); g_signal_connect(_DWApp, "activate", G_CALLBACK(_dw_app_activate), NULL); g_application_activate(_DWApp); }
--- a/gtk4/dw.c Sun Feb 28 13:42:25 2021 +0000 +++ b/gtk4/dw.c Mon Mar 01 01:31:12 2021 +0000 @@ -1421,7 +1421,8 @@ { /* Creat our notification handler for any notifications */ GSimpleAction *action = g_simple_action_new("notification", G_VARIANT_TYPE_UINT64); - + + g_set_prgname(_dw_app_id); g_signal_connect(G_OBJECT(action), "activate", G_CALLBACK(_dw_notification_handler), NULL); g_action_map_add_action(G_ACTION_MAP(_DWApp), G_ACTION(action)); g_signal_connect(_DWApp, "activate", G_CALLBACK(_dw_app_activate), NULL);