changeset 2333:d0f884083c63

GTK: Use appname in dw_app_id_set() to set g_set_application_name().
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Tue, 02 Mar 2021 00:12:48 +0000
parents 594111e84e89
children 29220ecf8db8
files gtk/dw.c gtk3/dw.c gtk4/dw.c
diffstat 3 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/gtk/dw.c	Mon Mar 01 13:23:58 2021 +0000
+++ b/gtk/dw.c	Tue Mar 02 00:12:48 2021 +0000
@@ -13420,6 +13420,8 @@
    if(g_application_id_is_valid(appid))
    {
       strncpy(_dw_app_id, appid, _DW_APP_ID_SIZE);
+      if(appname)
+      	g_set_application_name(appname);
       return DW_ERROR_NONE;
    }
    return DW_ERROR_GENERAL;
--- a/gtk3/dw.c	Mon Mar 01 13:23:58 2021 +0000
+++ b/gtk3/dw.c	Tue Mar 02 00:12:48 2021 +0000
@@ -11929,6 +11929,8 @@
    if(g_application_id_is_valid(appid))
    {
       strncpy(_dw_app_id, appid, _DW_APP_ID_SIZE);
+      if(appname)
+      	g_set_application_name(appname);
       return DW_ERROR_NONE;
    }
    return DW_ERROR_GENERAL;
--- a/gtk4/dw.c	Mon Mar 01 13:23:58 2021 +0000
+++ b/gtk4/dw.c	Tue Mar 02 00:12:48 2021 +0000
@@ -10532,6 +10532,8 @@
    if(g_application_id_is_valid(appid))
    {
       strncpy(_dw_app_id, appid, _DW_APP_ID_SIZE);
+      if(appname)
+      	g_set_application_name(appname);
       return DW_ERROR_NONE;
    }
    return DW_ERROR_GENERAL;