diff dwtest.c @ 2104:6e55c6f8d816

Added initial notification callback code to the test program. Win: Added initial notification callback handler glue and fixed a memory leak. The activation callbacks do not seem to be triggering so added some debug code to test.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Tue, 16 Jun 2020 00:16:59 +0000
parents 296a3872ddd9
children 10c22853b479
line wrap: on
line diff
--- a/dwtest.c	Mon Jun 15 22:05:55 2020 +0000
+++ b/dwtest.c	Tue Jun 16 00:16:59 2020 +0000
@@ -587,6 +587,11 @@
     return TRUE;
 }
 
+int DWSIGNAL notification_clicked_callback(HWND notification, void *data)
+{
+    dw_debug("Notification clicked\n");
+}
+
 int DWSIGNAL browse_file_callback(HWND window, void *data)
 {
     char *tmp;
@@ -604,6 +609,7 @@
         read_file();
         current_col = current_row = 0;
         update_render();
+        dw_signal_connect(notification, DW_SIGNAL_CLICKED, DW_SIGNAL_FUNC(notification_clicked_callback), NULL);
         dw_notification_send(notification);
     }
     dw_window_set_focus(copypastefield);