comparison gtk/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
11506 * Remove a page from a notebook. 11506 * Remove a page from a notebook.
11507 * Parameters: 11507 * Parameters:
11508 * handle: Handle to the notebook widget. 11508 * handle: Handle to the notebook widget.
11509 * pageid: ID of the page to be destroyed. 11509 * pageid: ID of the page to be destroyed.
11510 */ 11510 */
11511 void dw_notebook_page_destroy(HWND handle, unsigned int pageid) 11511 void dw_notebook_page_destroy(HWND handle, unsigned long pageid)
11512 { 11512 {
11513 int realpage, _dw_locked_by_me = FALSE; 11513 int realpage, _dw_locked_by_me = FALSE;
11514 GtkWidget **pagearray; 11514 GtkWidget **pagearray;
11515 11515
11516 DW_MUTEX_LOCK; 11516 DW_MUTEX_LOCK;
11545 * Sets the currently visibale page ID. 11545 * Sets the currently visibale page ID.
11546 * Parameters: 11546 * Parameters:
11547 * handle: Handle to the notebook widget. 11547 * handle: Handle to the notebook widget.
11548 * pageid: ID of the page to be made visible. 11548 * pageid: ID of the page to be made visible.
11549 */ 11549 */
11550 void dw_notebook_page_set(HWND handle, unsigned int pageid) 11550 void dw_notebook_page_set(HWND handle, unsigned long pageid)
11551 { 11551 {
11552 int realpage, _dw_locked_by_me = FALSE; 11552 int realpage, _dw_locked_by_me = FALSE;
11553 11553
11554 DW_MUTEX_LOCK; 11554 DW_MUTEX_LOCK;
11555 realpage = _dw_get_physical_page(handle, pageid); 11555 realpage = _dw_get_physical_page(handle, pageid);