diff --git a/include/wx/dcgraph.h b/include/wx/dcgraph.h index ce26481310..f9ac7461dd 100644 --- a/include/wx/dcgraph.h +++ b/include/wx/dcgraph.h @@ -83,7 +83,10 @@ public: virtual void SetBrush(const wxBrush& brush) wxOVERRIDE; virtual void SetBackground(const wxBrush& brush) wxOVERRIDE; virtual void SetBackgroundMode(int mode) wxOVERRIDE; + +#if wxUSE_PALETTE virtual void SetPalette(const wxPalette& palette) wxOVERRIDE; +#endif virtual void DestroyClippingRegion() wxOVERRIDE; diff --git a/include/wx/gtk/dcclient.h b/include/wx/gtk/dcclient.h index d4f09a984d..7911b74274 100644 --- a/include/wx/gtk/dcclient.h +++ b/include/wx/gtk/dcclient.h @@ -86,7 +86,10 @@ public: virtual void SetTextForeground( const wxColour &col ) wxOVERRIDE; virtual void SetTextBackground( const wxColour &col ) wxOVERRIDE; virtual void SetBackgroundMode( int mode ) wxOVERRIDE; + +#if wxUSE_PALETTE virtual void SetPalette( const wxPalette& palette ) wxOVERRIDE; +#endif virtual void DestroyClippingRegion() wxOVERRIDE; diff --git a/src/common/dcgraph.cpp b/src/common/dcgraph.cpp index 1278a15249..6eafed2622 100644 --- a/src/common/dcgraph.cpp +++ b/src/common/dcgraph.cpp @@ -457,10 +457,12 @@ void* wxGCDCImpl::GetHandle() const return cgctx; } +#if wxUSE_PALETTE void wxGCDCImpl::SetPalette( const wxPalette& WXUNUSED(palette) ) { } +#endif void wxGCDCImpl::SetBackgroundMode( int mode ) { diff --git a/src/gtk/dcclient.cpp b/src/gtk/dcclient.cpp index 58b8d2f469..0f29c219f5 100644 --- a/src/gtk/dcclient.cpp +++ b/src/gtk/dcclient.cpp @@ -1863,10 +1863,12 @@ void wxWindowDCImpl::SetBackgroundMode( int mode ) m_backgroundMode = mode; } +#if wxUSE_PALETTE void wxWindowDCImpl::SetPalette( const wxPalette& WXUNUSED(palette) ) { wxFAIL_MSG( wxT("wxWindowDCImpl::SetPalette not implemented") ); } +#endif void wxWindowDCImpl::UpdateClipBox() {