Skip to content

notebook: fix gtk_widget_unparent() with NULL child

When using gtk4-demo and closing the window (after changing notebook tabs), a CRITICAL like the following is presented.

gtk_widget_unparent: assertion 'GTK_IS_WIDGET (widget)' failed

This fixes that by conditionally checking that we have a valid widget still within the GtkBin.

Merge request reports