Mercurial > dwindows
comparison gtk4/dw.c @ 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 | edb4307ac7ce |
comparison
equal
deleted
inserted
replaced
2909:3fe7641f027c | 2910:927fcf85b132 |
---|---|
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 long 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 long) |
9131 { | 9131 { |
9132 GtkWidget **pagearray; | 9132 GtkWidget **pagearray; |
9133 int realpage = _dw_get_physical_page(handle, pageid); | 9133 int realpage = _dw_get_physical_page(handle, pageid); |
9134 | 9134 |
9135 if(realpage > -1 && realpage < 256) | 9135 if(realpage > -1 && realpage < 256) |
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 long 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 long) |
9171 { | 9171 { |
9172 int realpage = _dw_get_physical_page(handle, pageid); | 9172 int realpage = _dw_get_physical_page(handle, pageid); |
9173 | 9173 |
9174 if(realpage > -1 && realpage < 256) | 9174 if(realpage > -1 && realpage < 256) |
9175 gtk_notebook_set_current_page(GTK_NOTEBOOK(handle), pageid); | 9175 gtk_notebook_set_current_page(GTK_NOTEBOOK(handle), pageid); |