Mercurial > dwindows
diff 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 |
line wrap: on
line diff
--- a/gtk4/dw.c Tue Dec 27 00:33:29 2022 +0000 +++ b/gtk4/dw.c Tue Dec 27 00:58:58 2022 +0000 @@ -9124,7 +9124,7 @@ * handle: Handle to the notebook widget. * pageid: ID of the page to be destroyed. */ -DW_FUNCTION_DEFINITION(dw_notebook_page_destroy, void, HWND handle, unsigned int pageid) +DW_FUNCTION_DEFINITION(dw_notebook_page_destroy, void, HWND handle, unsigned long pageid) DW_FUNCTION_ADD_PARAM2(handle, pageid) DW_FUNCTION_NO_RETURN(dw_notebook_page_destroy) DW_FUNCTION_RESTORE_PARAM2(handle, HWND, pageid, unsigned int) @@ -9164,7 +9164,7 @@ * handle: Handle to the notebook widget. * pageid: ID of the page to be made visible. */ -DW_FUNCTION_DEFINITION(dw_notebook_page_set, void, HWND handle, unsigned int pageid) +DW_FUNCTION_DEFINITION(dw_notebook_page_set, void, HWND handle, unsigned long pageid) DW_FUNCTION_ADD_PARAM2(handle, pageid) DW_FUNCTION_NO_RETURN(dw_notebook_page_set) DW_FUNCTION_RESTORE_PARAM2(handle, HWND, pageid, unsigned int)