notebook: fix critical when switching page
authorMichael Catanzaro <mcatanzaro@redhat.com>
Wed, 23 Aug 2023 20:51:08 +0000 (15:51 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Thu, 24 Aug 2023 14:27:44 +0000 (10:27 -0400)
commit2e2857df325d91df91a8672d80846e39c3924e20
tree28a6f09fd8276c164b60e1b3325d4defa72902d3
parent8a4bde62da09922d225234276f34a0c4809681da
notebook: fix critical when switching page

It's expected that gtk_widget_get_root() will return NULL if the widget
tree does not contain a root widget. I don't know what that means or why
it happens, but it's true in gnome-control-center's network panel when
displaying the OpenVPN configuration dialog. We need to handle it.

Fixes #6056
gtk/gtknotebook.c