Mercurial > dwindows
diff mac/dw.m @ 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 | 7d3276f80132 |
line wrap: on
line diff
--- a/mac/dw.m Tue Dec 27 00:33:29 2022 +0000 +++ b/mac/dw.m Tue Dec 27 00:58:58 2022 +0000 @@ -9826,7 +9826,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 pageid) +void API dw_notebook_page_destroy(HWND handle, unsigned long pageid) { DWNotebook *notebook = handle; DWNotebookPage *notepage = _dw_notepage_from_id(notebook, pageid); @@ -9857,7 +9857,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 pageid) +void API dw_notebook_page_set(HWND handle, unsigned long pageid) { DWNotebook *notebook = handle; DWNotebookPage *notepage = _dw_notepage_from_id(notebook, pageid);