comparison gtk4/dw.c @ 2909:3fe7641f027c

WARNING: Fix an API inconsistency in dw_notebook_page_destroy/set() These two APIs incorrectly referenced the page ID as an int not long. This change may cause ABI problems with programs that use these on some platforms. Recompile your apps that use these functions for safety.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Tue, 27 Dec 2022 00:58:58 +0000
parents 2b7babf491e1
children 927fcf85b132
comparison
equal deleted inserted replaced
2908:1567f787b965 2909:3fe7641f027c
9122 * Remove a page from a notebook. 9122 * Remove a page from a notebook.
9123 * Parameters: 9123 * Parameters:
9124 * handle: Handle to the notebook widget. 9124 * handle: Handle to the notebook widget.
9125 * pageid: ID of the page to be destroyed. 9125 * pageid: ID of the page to be destroyed.
9126 */ 9126 */
9127 DW_FUNCTION_DEFINITION(dw_notebook_page_destroy, void, HWND handle, unsigned int pageid) 9127 DW_FUNCTION_DEFINITION(dw_notebook_page_destroy, void, HWND handle, unsigned long pageid)
9128 DW_FUNCTION_ADD_PARAM2(handle, pageid) 9128 DW_FUNCTION_ADD_PARAM2(handle, pageid)
9129 DW_FUNCTION_NO_RETURN(dw_notebook_page_destroy) 9129 DW_FUNCTION_NO_RETURN(dw_notebook_page_destroy)
9130 DW_FUNCTION_RESTORE_PARAM2(handle, HWND, pageid, unsigned int) 9130 DW_FUNCTION_RESTORE_PARAM2(handle, HWND, pageid, unsigned int)
9131 { 9131 {
9132 GtkWidget **pagearray; 9132 GtkWidget **pagearray;
9162 * Sets the currently visibale page ID. 9162 * Sets the currently visibale page ID.
9163 * Parameters: 9163 * Parameters:
9164 * handle: Handle to the notebook widget. 9164 * handle: Handle to the notebook widget.
9165 * pageid: ID of the page to be made visible. 9165 * pageid: ID of the page to be made visible.
9166 */ 9166 */
9167 DW_FUNCTION_DEFINITION(dw_notebook_page_set, void, HWND handle, unsigned int pageid) 9167 DW_FUNCTION_DEFINITION(dw_notebook_page_set, void, HWND handle, unsigned long pageid)
9168 DW_FUNCTION_ADD_PARAM2(handle, pageid) 9168 DW_FUNCTION_ADD_PARAM2(handle, pageid)
9169 DW_FUNCTION_NO_RETURN(dw_notebook_page_set) 9169 DW_FUNCTION_NO_RETURN(dw_notebook_page_set)
9170 DW_FUNCTION_RESTORE_PARAM2(handle, HWND, pageid, unsigned int) 9170 DW_FUNCTION_RESTORE_PARAM2(handle, HWND, pageid, unsigned int)
9171 { 9171 {
9172 int realpage = _dw_get_physical_page(handle, pageid); 9172 int realpage = _dw_get_physical_page(handle, pageid);