setting style on backing window should not be necessary, its background never shows

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50548 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Paul Cornett 2007-12-06 16:22:17 +00:00
parent 512cfcc341
commit b77adccd6d

View 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);
}
}