diff --git a/include/wx/gtk/private/stylecontext.h b/include/wx/gtk/private/stylecontext.h index 229b4f29a8..f13cc2461d 100644 --- a/include/wx/gtk/private/stylecontext.h +++ b/include/wx/gtk/private/stylecontext.h @@ -28,7 +28,9 @@ public: wxGtkStyleContext& AddTextview(const char* child1 = NULL, const char* child2 = NULL); wxGtkStyleContext& AddTooltip(); wxGtkStyleContext& AddTreeview(); +#if GTK_CHECK_VERSION(3,20,0) wxGtkStyleContext& AddTreeviewHeaderButton(int pos); +#endif // GTK >= 3.20 wxGtkStyleContext& AddWindow(const char* className2 = NULL); void Bg(wxColour& color, int state = GTK_STATE_FLAG_NORMAL) const; void Fg(wxColour& color, int state = GTK_STATE_FLAG_NORMAL) const;