forked from AuroraMiddleware/gtk
Allow calling gtk_widget_style_attach() only when realized
This commit is contained in:
parent
42f920c77b
commit
800fbc513f
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user