# HG changeset patch # User bsmith@81767d24-ef19-dc11-ae90-00e081727c95 # Date 1592275321 0 # Node ID 10c22853b479245d90b1f77c7c34459791c2354a # Parent 6e55c6f8d81684feffb6b1096b6ea9d6294efe90 Add dw_app_id_set() dwtest call to set application name and ID for sending notifications. Fix header typo and a warning in the dwtest notification callback. diff -r 6e55c6f8d816 -r 10c22853b479 dw.h --- a/dw.h Tue Jun 16 00:16:59 2020 +0000 +++ b/dw.h Tue Jun 16 02:42:01 2020 +0000 @@ -1819,7 +1819,7 @@ char * API dw_file_browse(const char *title, const char *defpath, const char *ext, int flags); char * API dw_user_dir(void); char * API dw_app_dir(void); -int API dw_app_id_set(const char *appid, const char *appguid); +int API dw_app_id_set(const char *appid, const char *appname); DWDialog * API dw_dialog_new(void *data); int API dw_dialog_dismiss(DWDialog *dialog, void *result); void * API dw_dialog_wait(DWDialog *dialog); diff -r 6e55c6f8d816 -r 10c22853b479 dwtest.c --- a/dwtest.c Tue Jun 16 00:16:59 2020 +0000 +++ b/dwtest.c Tue Jun 16 02:42:01 2020 +0000 @@ -590,6 +590,7 @@ int DWSIGNAL notification_clicked_callback(HWND notification, void *data) { dw_debug("Notification clicked\n"); + return TRUE; } int DWSIGNAL browse_file_callback(HWND window, void *data) @@ -1800,6 +1801,9 @@ ULONG notebookpage9; DWFEATURE feat; + /* Setup the Application ID for sending notifications */ + dw_app_id_set("org.dbsoft.dwindows.dwtest", "Dynamic Windows Test"); + /* Enable full dark mode on platforms that support it */ dw_feature_set(DW_FEATURE_DARK_MODE, 2);