Mercurial > dwindows
comparison gtk3/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 | edb4307ac7ce |
comparison
equal
deleted
inserted
replaced
2908:1567f787b965 | 2909:3fe7641f027c |
---|---|
10393 * Remove a page from a notebook. | 10393 * Remove a page from a notebook. |
10394 * Parameters: | 10394 * Parameters: |
10395 * handle: Handle to the notebook widget. | 10395 * handle: Handle to the notebook widget. |
10396 * pageid: ID of the page to be destroyed. | 10396 * pageid: ID of the page to be destroyed. |
10397 */ | 10397 */ |
10398 void dw_notebook_page_destroy(HWND handle, unsigned int pageid) | 10398 void dw_notebook_page_destroy(HWND handle, unsigned long pageid) |
10399 { | 10399 { |
10400 int realpage, _dw_locked_by_me = FALSE; | 10400 int realpage, _dw_locked_by_me = FALSE; |
10401 GtkWidget **pagearray; | 10401 GtkWidget **pagearray; |
10402 | 10402 |
10403 DW_MUTEX_LOCK; | 10403 DW_MUTEX_LOCK; |
10432 * Sets the currently visibale page ID. | 10432 * Sets the currently visibale page ID. |
10433 * Parameters: | 10433 * Parameters: |
10434 * handle: Handle to the notebook widget. | 10434 * handle: Handle to the notebook widget. |
10435 * pageid: ID of the page to be made visible. | 10435 * pageid: ID of the page to be made visible. |
10436 */ | 10436 */ |
10437 void dw_notebook_page_set(HWND handle, unsigned int pageid) | 10437 void dw_notebook_page_set(HWND handle, unsigned long pageid) |
10438 { | 10438 { |
10439 int realpage, _dw_locked_by_me = FALSE; | 10439 int realpage, _dw_locked_by_me = FALSE; |
10440 | 10440 |
10441 DW_MUTEX_LOCK; | 10441 DW_MUTEX_LOCK; |
10442 realpage = _dw_get_physical_page(handle, pageid); | 10442 realpage = _dw_get_physical_page(handle, pageid); |