diff --git a/include/wx/gtk/window.h b/include/wx/gtk/window.h index 3d09ab6a20..0f5478fe2b 100644 --- a/include/wx/gtk/window.h +++ b/include/wx/gtk/window.h @@ -109,6 +109,9 @@ public: virtual void AddChild( wxWindowBase *child ); virtual void RemoveChild( wxWindowBase *child ); + // currently wxGTK2-only + void SetDoubleBuffered(bool on); + // implementation // -------------- diff --git a/src/gtk/window.cpp b/src/gtk/window.cpp index 9330829817..28786da797 100644 --- a/src/gtk/window.cpp +++ b/src/gtk/window.cpp @@ -3743,6 +3743,14 @@ void wxWindowGTK::GtkSendPaintEvents() m_updateRegion.Clear(); } +void wxWindowGTK::SetDoubleBuffered( bool on ) +{ + wxCHECK_RET( (m_widget != NULL), wxT("invalid window") ); + + if ( m_wxwindow ) + gtk_widget_set_double_buffered( m_wxwindow, on ); +} + void wxWindowGTK::ClearBackground() { wxCHECK_RET( m_widget != NULL, wxT("invalid window") );