|
From: Jeremy O'D. <jer...@gm...> - 2012-01-11 16:19:50
|
On 11 January 2012 15:55, Dave Tapley <duk...@gm...> wrote: > On 11 January 2012 00:56, Dave Tapley <duk...@gm...> wrote: > > Does anyone know why wxTreeCtrl_GetBoundingRect is implemented [1] such > that: > > 1. It returns a null pointer on non-Windows platforms. > > 2. It disregards the returned value and returns GetRect(). > > > > It came in with: "wxhaskell-from-cvs @ 2004-09-14 10:27:48 by dleijen". > > > > Dave, > > > > [1] > http://darcsden.com/DukeDave/wxhaskell-dev/wxc/cpp/treectrl.cpp#L-535 > > Well, I've 'fixed' it, and it appears to work just fine in Ubuntu: > http://darcsden.com/DukeDave/wxhaskell-dev/patch/20120111150758-a1f0b > > I'm still curious if anyone can answer my original two questions. > With respect to (1), I suspect that it is code dating back to wxWidgets 2.2 support (the 2.2. docs are no longer on line, so I can't confirm). At that time, wxGTK was much less capable than wxMSW (it was based on GTK 1.x). (2) baffles me completely. Jeremy |