diff dwtest.c @ 2105:10c22853b479

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.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Tue, 16 Jun 2020 02:42:01 +0000
parents 6e55c6f8d816
children 251d050d306b
line wrap: on
line diff
--- 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);