comparison template/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
comparison
equal deleted inserted replaced
2975:ae4d6856b983 2976:b40adda4a129
2394 { 2394 {
2395 return DW_ERROR_UNKNOWN; 2395 return DW_ERROR_UNKNOWN;
2396 } 2396 }
2397 2397
2398 /* 2398 /*
2399 * Install a javascript function with name that can call native code.
2400 * Parameters:
2401 * handle: Handle to the HTML window.
2402 * name: Javascript function name.
2403 * Notes: A DW_SIGNAL_HTML_MESSAGE event will be raised with scriptdata.
2404 * Returns:
2405 * DW_ERROR_NONE (0) on success.
2406 */
2407 int API dw_html_javascript_add(HWND handle, const char *name)
2408 {
2409 return DW_ERROR_UNKNOWN;
2410 }
2411
2412 /*
2399 * Create a new HTML window (widget) to be packed. 2413 * Create a new HTML window (widget) to be packed.
2400 * Parameters: 2414 * Parameters:
2401 * id: An ID to be used with dw_window_from_id() or 0L. 2415 * id: An ID to be used with dw_window_from_id() or 0L.
2402 * Returns: 2416 * Returns:
2403 * Handle to the created html widget or NULL on error. 2417 * Handle to the created html widget or NULL on error.