mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-16 07:04:29 +00:00
widget: Only do a IS_ROOT type check if the parent is unset
So we do less type checks
This commit is contained in:
parent
de40b0b061
commit
ef623aaabc
@ -10440,7 +10440,7 @@ gtk_widget_set_alloc_needed (GtkWidget *widget)
|
||||
if (!priv->visible)
|
||||
break;
|
||||
|
||||
if (GTK_IS_ROOT (widget))
|
||||
if (!priv->parent && GTK_IS_ROOT (widget))
|
||||
{
|
||||
gtk_root_start_layout (GTK_ROOT (widget));
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user