[Plib-devel] Re: [PATCH] puAux.h: add missing methods setTopItem/getTopItem (urgent)
Brought to you by:
sjbaker
From: Bram S. <br...@sa...> - 2006-05-15 16:02:21
|
Melchior FRANZ wrote: > 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. I have to wait for svn service before I can fix this. I think this is the sequence of events: 1) we wait for SF to fix cvs service 2) Steve migrates plib from CVS to SVN 3) Important bugfixes are applied 4) Release Candidate tarball 5) Release > > 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 -- Bram Stolk, VR Engineer SARA, Amsterdam. tel +31 20 592 3000 "Windows is a 32-bit extension to a 16-bit graphical shell for an 8-bit operating system originally coded for a 4-bit microprocessor by a 2-bit company that can't stand 1 bit of competition." |