]> git.saurik.com Git - wxWidgets.git/commitdiff
added SetDoubleBuffered() (patch 1491093)
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 28 May 2006 14:30:08 +0000 (14:30 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 28 May 2006 14:30:08 +0000 (14:30 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39374 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/gtk/window.h
src/gtk/window.cpp

index 3d09ab6a20e452c9918ccf15730771f34f2cd274..0f5478fe2baeab7bbb9f52d8dff09a6c1ad7c1cf 100644 (file)
@@ -109,6 +109,9 @@ public:
     virtual void AddChild( wxWindowBase *child );
     virtual void RemoveChild( wxWindowBase *child );
 
+    // currently wxGTK2-only
+    void SetDoubleBuffered(bool on);
+
     // implementation
     // --------------
 
index 93308298171024b5f8d6cc9d286a8ff20d799566..28786da79774637b3829f1f6f17b4bc1f586b73f 100644 (file)
@@ -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") );