[Plib-devel] [PATCH] puAux.h: add missing methods setTopItem/getTopItem (urgent)
Brought to you by:
sjbaker
From: Melchior F. <mf...@us...> - 2006-05-14 09:05:04
|
Hi, just noticed that puaList has methods getTopItem() and setTopItem() declared, but not defined. Could you please commit that before the release. (I need that for FlightGear and it would be a pity if I had to wait for the next release.) It just forwards the methods to the subwidget that is resposible for this feature. Tested and works. CC to Bram because the sf.net is quite flakey these days. m. Index: puAux.h =================================================================== RCS file: /cvsroot/plib/plib/src/puAux/puAux.h,v retrieving revision 1.11 diff -u -p -r1.11 puAux.h --- puAux.h 25 Mar 2006 00:34:08 -0000 1.11 +++ puAux.h 14 May 2006 09:01:16 -0000 @@ -914,8 +914,8 @@ public: virtual void setSize (int w, int h); int getNumItems ( void ) const ; - int getTopItem ( void ) const ; - void setTopItem ( int item_index ); + int getTopItem ( void ) const { return _list_box->getTopItem(); } + void setTopItem ( int item_index ) { _list_box->setTopItem(item_index); } }; #endif |