Allow calling gtk_widget_style_attach() only when realized
This commit is contained in:
@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user