Make GtkDrawingArea use GtkStyleContext

This commit is contained in:
Carlos Garnacho 2011-01-04 02:26:24 +01:00
parent 552c4c78f6
commit c180edd80c

View File

@ -92,8 +92,8 @@ gtk_drawing_area_realize (GtkWidget *widget)
gdk_window_set_user_data (window, darea);
gtk_widget_set_window (widget, 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);
}
gtk_drawing_area_send_configure (GTK_DRAWING_AREA (widget));