forked from AuroraMiddleware/gtk
Make GtkDrawingArea use GtkStyleContext
This commit is contained in:
parent
552c4c78f6
commit
c180edd80c
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user