comparison 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
comparison
equal deleted inserted replaced
2104:6e55c6f8d816 2105:10c22853b479
588 } 588 }
589 589
590 int DWSIGNAL notification_clicked_callback(HWND notification, void *data) 590 int DWSIGNAL notification_clicked_callback(HWND notification, void *data)
591 { 591 {
592 dw_debug("Notification clicked\n"); 592 dw_debug("Notification clicked\n");
593 return TRUE;
593 } 594 }
594 595
595 int DWSIGNAL browse_file_callback(HWND window, void *data) 596 int DWSIGNAL browse_file_callback(HWND window, void *data)
596 { 597 {
597 char *tmp; 598 char *tmp;
1798 ULONG notebookpage7; 1799 ULONG notebookpage7;
1799 ULONG notebookpage8; 1800 ULONG notebookpage8;
1800 ULONG notebookpage9; 1801 ULONG notebookpage9;
1801 DWFEATURE feat; 1802 DWFEATURE feat;
1802 1803
1804 /* Setup the Application ID for sending notifications */
1805 dw_app_id_set("org.dbsoft.dwindows.dwtest", "Dynamic Windows Test");
1806
1803 /* Enable full dark mode on platforms that support it */ 1807 /* Enable full dark mode on platforms that support it */
1804 dw_feature_set(DW_FEATURE_DARK_MODE, 2); 1808 dw_feature_set(DW_FEATURE_DARK_MODE, 2);
1805 1809
1806 /* Initialize the Dynamic Windows engine */ 1810 /* Initialize the Dynamic Windows engine */
1807 dw_init(TRUE, argc, argv); 1811 dw_init(TRUE, argc, argv);