comparison gtk3/dw.c @ 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 3361ce6070ce
children d0f884083c63
comparison
equal deleted inserted replaced
2329:47f8f950f377 2330:58700e9fcba3
2109 GSimpleAction *action = g_simple_action_new("notification", G_VARIANT_TYPE_UINT64); 2109 GSimpleAction *action = g_simple_action_new("notification", G_VARIANT_TYPE_UINT64);
2110 2110
2111 g_signal_connect(G_OBJECT(action), "activate", G_CALLBACK(_dw_notification_handler), NULL); 2111 g_signal_connect(G_OBJECT(action), "activate", G_CALLBACK(_dw_notification_handler), NULL);
2112 g_action_map_add_action(G_ACTION_MAP(_DWApp), G_ACTION(action)); 2112 g_action_map_add_action(G_ACTION_MAP(_DWApp), G_ACTION(action));
2113 #endif 2113 #endif
2114 g_set_prgname(_dw_app_id);
2114 g_signal_connect(_DWApp, "activate", G_CALLBACK(_dw_app_activate), NULL); 2115 g_signal_connect(_DWApp, "activate", G_CALLBACK(_dw_app_activate), NULL);
2115 g_application_activate(_DWApp); 2116 g_application_activate(_DWApp);
2116 } 2117 }
2117 #endif 2118 #endif
2118 return TRUE; 2119 return TRUE;