I started working with the newest wxWidgets release (2.6.2) a few days ago and compiled the latest Code::Blocks CVS with it. I noticed the Build target ComboBox in the toolbar wasn't working as it should and trying to find the reason for it I found in the changes file this little thingy:
- wxChoice and wxComboBox::GetSelection() now returns completed selection, added a new GetCurrentSelection() function having the old behaviour.
Searching for version macros I found wxCHECK_VERSION and I'm proposing to use it:
#if wxCHECK_VERSION(2, 6, 2)
m_TargetIndex = m_ToolTarget->GetCurrentSelection() - (m_HasTargetAll ? 1 : 0);
#else
m_TargetIndex = m_ToolTarget->GetSelection() - (m_HasTargetAll ? 1 : 0);
#endif
That's from plugins/compilergcc/compilergcc.cpp line 1821 if you wonder.
It might be added somewhere else too... you're the ones who know the whole source.