inspector: Fix some lifecycle issues
authorMatthias Clasen <mclasen@redhat.com>
Tue, 4 Oct 2022 11:08:25 +0000 (07:08 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Tue, 4 Oct 2022 11:10:35 +0000 (07:10 -0400)
commite68b365fa19486c32cbe25a4073b8251557d015c
tree4a55e768560fc65fb50d7d1b94124fe0dabe8350
parent3867f9b8ea195b755c250a9573b5a6906c31c525
inspector: Fix some lifecycle issues

The template use in the inspector was not properly
disposing all widgets. gtk_widget_dispose_template
will only unparent widgets that have been named
as template children, so we need to make the toplevel
elements in the ui file named children, or manually
dispose them. This commit does the former.
gtk/inspector/actions.c
gtk/inspector/actions.ui
gtk/inspector/list-data.c
gtk/inspector/list-data.ui
gtk/inspector/logs.c
gtk/inspector/logs.ui
gtk/inspector/tree-data.c
gtk/inspector/tree-data.ui