Merge branch 'bilelmoussaoui/layout-manager' into 'main'

layout manager: add a check if the widget exists

See merge request GNOME/gtk!4469
This commit is contained in:
Emmanuele Bassi 2022-02-11 11:51:44 +00:00
commit 0ade146e26

View File

@ -424,6 +424,7 @@ gtk_layout_manager_get_request_mode (GtkLayoutManager *manager)
GtkLayoutManagerClass *klass;
g_return_val_if_fail (GTK_IS_LAYOUT_MANAGER (manager), GTK_SIZE_REQUEST_CONSTANT_SIZE);
g_return_val_if_fail (priv->widget != NULL, GTK_SIZE_REQUEST_CONSTANT_SIZE);
klass = GTK_LAYOUT_MANAGER_GET_CLASS (manager);