Define wxPG toolbar event handler only if library is compiled with toolbar classes.

Include wxPropertyGridManager::OnToolbarClick() code only if wxUSE_TOOLBAR is set to 1.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@78214 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Artur Wieczorek
2014-12-03 17:01:35 +00:00
parent 922bef4df6
commit 07371fcd56
2 changed files with 4 additions and 0 deletions

View File

@@ -656,7 +656,9 @@ protected:
void OnPaint( wxPaintEvent &event ); void OnPaint( wxPaintEvent &event );
#if wxUSE_TOOLBAR
void OnToolbarClick( wxCommandEvent &event ); void OnToolbarClick( wxCommandEvent &event );
#endif
void OnResize( wxSizeEvent& event ); void OnResize( wxSizeEvent& event );
void OnPropertyGridSelect( wxPropertyGridEvent& event ); void OnPropertyGridSelect( wxPropertyGridEvent& event );
void OnPGColDrag( wxPropertyGridEvent& event ); void OnPGColDrag( wxPropertyGridEvent& event );

View File

@@ -1719,6 +1719,7 @@ bool wxPropertyGridManager::EnsureVisible( wxPGPropArg id )
// ----------------------------------------------------------------------- // -----------------------------------------------------------------------
#if wxUSE_TOOLBAR
void wxPropertyGridManager::OnToolbarClick( wxCommandEvent &event ) void wxPropertyGridManager::OnToolbarClick( wxCommandEvent &event )
{ {
int id = event.GetId(); int id = event.GetId();
@@ -1788,6 +1789,7 @@ void wxPropertyGridManager::OnToolbarClick( wxCommandEvent &event )
} }
} }
} }
#endif
// ----------------------------------------------------------------------- // -----------------------------------------------------------------------