Mercurial > dwindows
diff gtk/dw.c @ 2976:b40adda4a129
OS2/GTK2/Template: Add empty dw_html_javascript_add() functions.
OS/2 does not support HTML and GTK2 does not support a WebKit that will
allow DW_SIGNAL_HTML_MESSAGE, so implement failure functions.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Fri, 24 Mar 2023 17:28:21 +0000 |
parents | 0577a97fe36d |
children | 8450b87e960c |
line wrap: on
line diff
--- a/gtk/dw.c Fri Mar 24 17:15:59 2023 +0000 +++ b/gtk/dw.c Fri Mar 24 17:28:21 2023 +0000 @@ -13285,6 +13285,20 @@ #endif /* + * Install a javascript function with name that can call native code. + * Parameters: + * handle: Handle to the HTML window. + * name: Javascript function name. + * Notes: A DW_SIGNAL_HTML_MESSAGE event will be raised with scriptdata. + * Returns: + * DW_ERROR_NONE (0) on success. + */ +int API dw_html_javascript_add(HWND handle, const char *name) +{ + return DW_ERROR_UNKNOWN; +} + +/* * Create a new Entryfield window (widget) to be packed. * Parameters: * text: The default text to be in the entryfield widget.