]> git.saurik.com Git - wxWidgets.git/commitdiff
Disable any refresh in backing window (set_back_pixmap( None ..) makes it transparent
authorRobert Roebling <robert@roebling.de>
Sun, 16 Dec 2007 23:53:09 +0000 (23:53 +0000)
committerRobert Roebling <robert@roebling.de>
Sun, 16 Dec 2007 23:53:09 +0000 (23:53 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50755 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/gtk/win_gtk.cpp

index dfbba0211698c2865b3551509df4c6f465fe8f07..860c83033893853f3b23aaf56277370a795d72e3 100644 (file)
@@ -10,6 +10,8 @@
 #include "wx/defs.h"
 #include "wx/gtk/win_gtk.h"
 
+#include <gdk/gdkx.h>
+
 /*
 wxPizza is a custom GTK+ widget derived from GtkFixed.  A custom widget
 is needed to adapt GTK+ to wxWidgets needs in 3 areas: scrolling, window
@@ -166,6 +168,8 @@ static void realize(GtkWidget* widget)
         else
             gdk_window_reparent(widget->window, pizza->m_backing_window, border_x, border_y);
         gdk_window_resize(widget->window, w, h);
+        
+        gdk_window_set_back_pixmap( pizza->m_backing_window, None, False );
     }
 }