Allow calling gtk_widget_style_attach() only when realized

This commit is contained in:
Michael Natterer
2010-02-11 09:27:05 +01:00
parent 96d07cacb2
commit 0231cff988

View File

@ -6409,6 +6409,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);
}