Remove recent GtkStyle usage in GtkWindow

GtkStyleContext API is used instead.
This commit is contained in:
Carlos Garnacho 2011-01-10 02:21:06 +01:00
parent e94b515171
commit f506fc3e93

View File

@ -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;