changeset 2910:927fcf85b132

GTK4: Fix pageid type to be unsigned long in the macros. Update the readme with information about this change.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Tue, 27 Dec 2022 01:23:09 +0000
parents 3fe7641f027c
children f27fe14eef82
files gtk4/dw.c readme.txt
diffstat 2 files changed, 6 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/gtk4/dw.c	Tue Dec 27 00:58:58 2022 +0000
+++ b/gtk4/dw.c	Tue Dec 27 01:23:09 2022 +0000
@@ -9127,7 +9127,7 @@
 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)
+DW_FUNCTION_RESTORE_PARAM2(handle, HWND, pageid, unsigned long)
 {
    GtkWidget **pagearray;
    int realpage = _dw_get_physical_page(handle, pageid);
@@ -9167,7 +9167,7 @@
 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)
+DW_FUNCTION_RESTORE_PARAM2(handle, HWND, pageid, unsigned long)
 {
    int realpage = _dw_get_physical_page(handle, pageid);
 
--- a/readme.txt	Tue Dec 27 00:58:58 2022 +0000
+++ b/readme.txt	Tue Dec 27 01:23:09 2022 +0000
@@ -51,6 +51,10 @@
 are packed.  For portability pack widgets before operating on them.
 
 Changes from version 3.2:
+WARNING: Fixed an API inconsistency in dw_notebook_page_destroy/set().
+    The page ID had been unsigned int when it should be unsigned long.
+    On some platforms apps compiled for versions prior to 3.3 may
+    malfunction when calling these API calls, so recompile with 3.3.
 Added tree widget/control support for iOS and Android.
 Removed the lib and dll directories previously used on Windows and OS/2.
     On Windows x86 and x64 subdirectories are created automatically