comparison android/dw.cpp @ 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 edb4307ac7ce
comparison
equal deleted inserted replaced
2908:1567f787b965 2909:3fe7641f027c
5589 * Remove a page from a notebook. 5589 * Remove a page from a notebook.
5590 * Parameters: 5590 * Parameters:
5591 * handle: Handle to the notebook widget. 5591 * handle: Handle to the notebook widget.
5592 * pageid: ID of the page to be destroyed. 5592 * pageid: ID of the page to be destroyed.
5593 */ 5593 */
5594 void API dw_notebook_page_destroy(HWND handle, unsigned int pageid) 5594 void API dw_notebook_page_destroy(HWND handle, unsigned long pageid)
5595 { 5595 {
5596 JNIEnv *env; 5596 JNIEnv *env;
5597 5597
5598 if(handle && pageid && (env = (JNIEnv *)pthread_getspecific(_dw_env_key))) 5598 if(handle && pageid && (env = (JNIEnv *)pthread_getspecific(_dw_env_key)))
5599 { 5599 {
5638 * Sets the currently visible page ID. 5638 * Sets the currently visible page ID.
5639 * Parameters: 5639 * Parameters:
5640 * handle: Handle to the notebook widget. 5640 * handle: Handle to the notebook widget.
5641 * pageid: ID of the page to be made visible. 5641 * pageid: ID of the page to be made visible.
5642 */ 5642 */
5643 void API dw_notebook_page_set(HWND handle, unsigned int pageid) 5643 void API dw_notebook_page_set(HWND handle, unsigned long pageid)
5644 { 5644 {
5645 JNIEnv *env; 5645 JNIEnv *env;
5646 5646
5647 if(handle && pageid && (env = (JNIEnv *)pthread_getspecific(_dw_env_key))) { 5647 if(handle && pageid && (env = (JNIEnv *)pthread_getspecific(_dw_env_key))) {
5648 // First get the class that contains the method you need to call 5648 // First get the class that contains the method you need to call