Commit 0231cff9 authored by Michael Natterer's avatar Michael Natterer 😴

Allow calling gtk_widget_style_attach() only when realized

parent 96d07cac
......@@ -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);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment