Mercurial > dwindows
comparison gtk/dw.c @ 346:81fae15885d7
Implemented switch-page on OS/2, and changed the signal prototype to
unsigned long instead of int. Also dw_notebook_page_query should
return unsigned long as well.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Fri, 11 Apr 2003 13:35:50 +0000 |
parents | 599644ca9064 |
children | 2216e65ad2ae |
comparison
equal
deleted
inserted
replaced
345:599644ca9064 | 346:81fae15885d7 |
---|---|
573 SignalHandler *work = (SignalHandler *)data; | 573 SignalHandler *work = (SignalHandler *)data; |
574 int retval = FALSE; | 574 int retval = FALSE; |
575 | 575 |
576 if(work) | 576 if(work) |
577 { | 577 { |
578 int (*switchpagefunc)(HWND, int, void *) = work->func; | 578 int (*switchpagefunc)(HWND, unsigned long, void *) = work->func; |
579 retval = switchpagefunc(work->window, _get_logical_page(GTK_WIDGET(notebook), page_num), work->data); | 579 retval = switchpagefunc(work->window, _get_logical_page(GTK_WIDGET(notebook), page_num), work->data); |
580 } | 580 } |
581 return retval; | 581 return retval; |
582 } | 582 } |
583 | 583 |
6353 /* | 6353 /* |
6354 * Queries the currently visible page ID. | 6354 * Queries the currently visible page ID. |
6355 * Parameters: | 6355 * Parameters: |
6356 * handle: Handle to the notebook widget. | 6356 * handle: Handle to the notebook widget. |
6357 */ | 6357 */ |
6358 unsigned int dw_notebook_page_query(HWND handle) | 6358 unsigned long dw_notebook_page_query(HWND handle) |
6359 { | 6359 { |
6360 int retval, phys; | 6360 int retval, phys; |
6361 int _locked_by_me = FALSE; | 6361 int _locked_by_me = FALSE; |
6362 | 6362 |
6363 DW_MUTEX_LOCK; | 6363 DW_MUTEX_LOCK; |