1
0
Fork 0
mirror of https://gitlab.gnome.org/GNOME/calls.git synced 2024-06-28 14:49:30 +00:00

application: Guard against setting application name twice

This is useful for testing the CallsApplication.
This commit is contained in:
Evangelos Ribeiro Tzaras 2023-01-16 09:07:49 +01:00
parent ac6aff798d
commit b49e086549

View file

@ -474,8 +474,11 @@ startup (GApplication *application)
cui_init (TRUE);
g_set_prgname (APP_ID);
g_set_application_name (_("Calls"));
if (!g_get_prgname ())
g_set_prgname (APP_ID);
if (!g_get_application_name ())
g_set_application_name (_("Calls"));
g_action_map_add_action_entries (G_ACTION_MAP (application),
actions,