Make GtkOffscreenWindow use GtkStyleContext

This commit is contained in:
Carlos Garnacho 2011-01-04 02:41:04 +01:00
parent 7e2dea1dff
commit f9a5c14ac0

View File

@ -193,9 +193,8 @@ gtk_offscreen_window_realize (GtkWidget *widget)
if (child)
gtk_widget_set_parent_window (child, window);
gtk_widget_style_attach (widget);
gtk_style_set_background (gtk_widget_get_style (widget),
window, GTK_STATE_NORMAL);
gtk_style_context_set_background (gtk_widget_get_style_context (widget),
window);
}
static void