comparison gtk4/dw.c @ 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
comparison
equal deleted inserted replaced
2332:594111e84e89 2333:d0f884083c63
10530 int API dw_app_id_set(const char *appid, const char *appname) 10530 int API dw_app_id_set(const char *appid, const char *appname)
10531 { 10531 {
10532 if(g_application_id_is_valid(appid)) 10532 if(g_application_id_is_valid(appid))
10533 { 10533 {
10534 strncpy(_dw_app_id, appid, _DW_APP_ID_SIZE); 10534 strncpy(_dw_app_id, appid, _DW_APP_ID_SIZE);
10535 if(appname)
10536 g_set_application_name(appname);
10535 return DW_ERROR_NONE; 10537 return DW_ERROR_NONE;
10536 } 10538 }
10537 return DW_ERROR_GENERAL; 10539 return DW_ERROR_GENERAL;
10538 } 10540 }
10539 10541