]> git.saurik.com Git - wxWidgets.git/commitdiff
setting style on backing window should not be necessary, its background never shows
authorPaul Cornett <paulcor@bullseye.com>
Thu, 6 Dec 2007 16:22:17 +0000 (16:22 +0000)
committerPaul Cornett <paulcor@bullseye.com>
Thu, 6 Dec 2007 16:22:17 +0000 (16:22 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50548 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/gtk/win_gtk.cpp

index d8d901817c34bc19cafb28c23b8197b5323b57ac..dfbba0211698c2865b3551509df4c6f465fe8f07 100644 (file)
@@ -9,7 +9,6 @@
 
 #include "wx/defs.h"
 #include "wx/gtk/win_gtk.h"
-#include "gtk/gtk.h"
 
 /*
 wxPizza is a custom GTK+ widget derived from GtkFixed.  A custom widget
@@ -167,9 +166,6 @@ 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);
-        
-        widget->style = gtk_style_attach (widget->style, pizza->m_backing_window);
-        gtk_style_set_background (widget->style, pizza->m_backing_window, GTK_STATE_NORMAL);
     }
 }