Mercurial > dwindows
comparison gtk/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 | 3361ce6070ce |
children | 123e22827a82 |
comparison
equal
deleted
inserted
replaced
2332:594111e84e89 | 2333:d0f884083c63 |
---|---|
13418 { | 13418 { |
13419 #if GLIB_CHECK_VERSION(2,28,0) | 13419 #if GLIB_CHECK_VERSION(2,28,0) |
13420 if(g_application_id_is_valid(appid)) | 13420 if(g_application_id_is_valid(appid)) |
13421 { | 13421 { |
13422 strncpy(_dw_app_id, appid, _DW_APP_ID_SIZE); | 13422 strncpy(_dw_app_id, appid, _DW_APP_ID_SIZE); |
13423 if(appname) | |
13424 g_set_application_name(appname); | |
13423 return DW_ERROR_NONE; | 13425 return DW_ERROR_NONE; |
13424 } | 13426 } |
13425 return DW_ERROR_GENERAL; | 13427 return DW_ERROR_GENERAL; |
13426 #else | 13428 #else |
13427 return DW_ERROR_UNKNOWN; | 13429 return DW_ERROR_UNKNOWN; |