layoutmanager: Avoid some overhead

Use inline getters for some things.
This commit is contained in:
Matthias Clasen 2021-07-22 20:58:25 -04:00
parent ae3e586714
commit 98986a25f9

View File

@ -517,7 +517,7 @@ gtk_layout_manager_get_layout_child (GtkLayoutManager *manager,
g_return_val_if_fail (GTK_IS_LAYOUT_MANAGER (manager), NULL);
g_return_val_if_fail (GTK_IS_WIDGET (child), NULL);
parent = gtk_widget_get_parent (child);
parent = _gtk_widget_get_parent (child);
g_return_val_if_fail (parent != NULL, NULL);
if (priv->widget != parent)