Mercurial > dwindows
diff win/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 | 761b7a12b079 |
children | edb4307ac7ce |
line wrap: on
line diff
--- a/win/dw.c Tue Dec 27 00:33:29 2022 +0000 +++ b/win/dw.c Tue Dec 27 00:58:58 2022 +0000 @@ -8915,7 +8915,7 @@ * handle: Handle to the notebook widget. * pageid: ID of the page to be destroyed. */ -void API dw_notebook_page_destroy(HWND handle, unsigned int pageidx) +void API dw_notebook_page_destroy(HWND handle, unsigned long pageidx) { NotebookPage **array = (NotebookPage **)dw_window_get_data(handle, "_dw_array"); int newid = -1, z, pageid; @@ -8983,7 +8983,7 @@ * handle: Handle to the notebook widget. * pageid: ID of the page to be made visible. */ -void API dw_notebook_page_set(HWND handle, unsigned int pageidx) +void API dw_notebook_page_set(HWND handle, unsigned long pageidx) { NotebookPage **array = (NotebookPage **)dw_window_get_data(handle, "_dw_array"); int pageid;