gtk2/gtk/inspector/tree-data.ui
Matthias Clasen e68b365fa1 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.
2022-10-04 07:10:35 -04:00

35 lines
1.1 KiB
XML

<interface domain="gtk40">
<template class="GtkInspectorTreeData" parent="GtkWidget">
<child>
<object class="GtkBox" id="box">
<style>
<class name="toolbar"/>
</style>
<child>
<object class="GtkToggleButton" id="show_button">
<property name="tooltip-text" translatable="yes">Show data</property>
<property name="icon-name">view-refresh-symbolic</property>
<signal name="toggled" handler="toggle_show"/>
</object>
</child>
<child>
<object class="GtkLabel" id="object_title">
<property name="hexpand">1</property>
<property name="halign">center</property>
</object>
</child>
</object>
</child>
<child>
<object class="GtkScrolledWindow" id="swin">
<property name="hexpand">1</property>
<property name="vexpand">1</property>
<property name="vscrollbar-policy">always</property>
<child>
<object class="GtkTreeView" id="view"/>
</child>
</object>
</child>
</template>
</interface>