comparison 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
comparison
equal deleted inserted replaced
1353:f4ad4ba39b61 1354:1f22addc2722
4735 DW_HWND_OBJECT, 4735 DW_HWND_OBJECT,
4736 (HMENU)id, 4736 (HMENU)id,
4737 DWInstance, 4737 DWInstance,
4738 NULL); 4738 NULL);
4739 #else 4739 #else
4740 dw_debug("HTML widget not available; Support not enabled in this build.");
4740 return 0; 4741 return 0;
4741 #endif 4742 #endif
4742 } 4743 }
4743 4744
4744 /* 4745 /*