mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-20 02:10:12 +00:00
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)
|
gtk_widget_style_attach (GtkWidget *widget)
|
||||||
{
|
{
|
||||||
g_return_if_fail (GTK_IS_WIDGET (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);
|
widget->style = gtk_style_attach (widget->style, widget->window);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user