X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9eddec696f06d65a80e7339b2fae14fcb55f8383..fd0bab435360c3c0e889dc242458d32760f4630f:/src/gtk/window.cpp diff --git a/src/gtk/window.cpp b/src/gtk/window.cpp index 72ee7a2c02..28786da797 100644 --- a/src/gtk/window.cpp +++ b/src/gtk/window.cpp @@ -26,10 +26,10 @@ #include "wx/menu.h" #include "wx/dialog.h" #include "wx/settings.h" + #include "wx/msgdlg.h" #endif #include "wx/layout.h" -#include "wx/msgdlg.h" #include "wx/module.h" #include "wx/combobox.h" @@ -221,7 +221,6 @@ extern GtkContainerClass *pizza_parent_class; // data //----------------------------------------------------------------------------- -extern wxList wxPendingDelete; extern bool g_blockEventsOnDrag; extern bool g_blockEventsOnScroll; extern wxCursor g_globalCursor; @@ -3744,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") );