diff win/dw.c @ 1354:1f22addc2722

Changed the behavior of dw_html_new() to return NULL on failure like the documentation indicates... Instead of creating a text widget with an error message. This error message is now sent to the console. This allows programs to be able to gracefully handle the failure to create the HTML widget. Also updated the dwtest program to create a text widget in a similar fashion on failure. Also updated the dw_calendar_* comments to no longer be unsupported on OS/2.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Fri, 18 Nov 2011 13:34:36 +0000
parents b23ae7d9f729
children 2f5e54b0c5c4
line wrap: on
line diff
--- a/win/dw.c	Wed Nov 16 20:31:35 2011 +0000
+++ b/win/dw.c	Fri Nov 18 13:34:36 2011 +0000
@@ -4737,6 +4737,7 @@
                   DWInstance,
                   NULL);
 #else
+   dw_debug("HTML widget not available; Support not enabled in this build.");
    return 0;
 #endif
 }