diff dwtest.c @ 2066:2c2530f8cbef

Initial design for system notification support on GTK. Windows, Mac and possibly OS/2 Support will follow. GTK support requires Glib 2.40 or higher.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Thu, 14 May 2020 01:52:27 +0000
parents 466cf00f409f
children 24875681eec5
line wrap: on
line diff
--- a/dwtest.c	Mon Apr 27 08:55:40 2020 +0000
+++ b/dwtest.c	Thu May 14 01:52:27 2020 +0000
@@ -592,6 +592,8 @@
     tmp = dw_file_browse("Pick a file", "dwtest.c", "c", DW_FILE_OPEN );
     if ( tmp )
     {
+        HWND notification = dw_notification_new("New file loaded", NULL, "dwtest loaded \"%s\" into the file browser on the Render tab, with \"File Display\" selected from the drop down list.", tmp);
+        
         if ( current_file )
         {
             dw_free( current_file );
@@ -601,6 +603,7 @@
         read_file();
         current_col = current_row = 0;
         update_render();
+        dw_notification_send(notification);
     }
     dw_window_set_focus(copypastefield);
     return 0;