diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c index b92627a679..371e69cca8 100644 --- a/gtk/gtkwindow.c +++ b/gtk/gtkwindow.c @@ -4889,8 +4889,7 @@ gtk_window_realize (GtkWidget *widget) gtk_widget_set_window (widget, gdk_window); gdk_window_set_user_data (gdk_window, widget); - gtk_widget_style_attach (widget); - gtk_style_set_background (gtk_widget_get_style (widget), gdk_window, GTK_STATE_NORMAL); + gtk_style_context_set_background (gtk_widget_get_style_context (widget), gdk_window); gdk_window_enable_synchronized_configure (gdk_window); return;