comparison gtk3/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 58700e9fcba3
children 5437aed23151
comparison
equal deleted inserted replaced
2332:594111e84e89 2333:d0f884083c63
11927 { 11927 {
11928 #if GLIB_CHECK_VERSION(2,28,0) 11928 #if GLIB_CHECK_VERSION(2,28,0)
11929 if(g_application_id_is_valid(appid)) 11929 if(g_application_id_is_valid(appid))
11930 { 11930 {
11931 strncpy(_dw_app_id, appid, _DW_APP_ID_SIZE); 11931 strncpy(_dw_app_id, appid, _DW_APP_ID_SIZE);
11932 if(appname)
11933 g_set_application_name(appname);
11932 return DW_ERROR_NONE; 11934 return DW_ERROR_NONE;
11933 } 11935 }
11934 return DW_ERROR_GENERAL; 11936 return DW_ERROR_GENERAL;
11935 #else 11937 #else
11936 return DW_ERROR_UNKNOWN; 11938 return DW_ERROR_UNKNOWN;