Allow calling gtk_widget_style_attach() only when realized

This commit is contained in:
Michael Natterer 2010-02-11 09:27:05 +01:00 committed by Tristan Van Berkom
parent 42f920c77b
commit 800fbc513f

View File

@ -6424,6 +6424,7 @@ void
gtk_widget_style_attach (GtkWidget *widget)
{
g_return_if_fail (GTK_IS_WIDGET (widget));
g_return_if_fail (GTK_WIDGET_REALIZED (widget));
widget->style = gtk_style_attach (widget->style, widget->window);
}