sysprof: switch over to SysprofTreeExpander

Still a bit more to do, but good enough to switch for now.
This commit is contained in:
Christian Hergert
2023-07-19 16:48:33 -07:00
parent 4be91a73d8
commit b2e3611c52

View File

@ -117,7 +117,6 @@
<property name="propagate-natural-height">true</property>
<child>
<object class="GtkColumnView" id="descendants_column_view">
<signal name="activate" handler="descendant_activated_cb" swapped="true"/>
<style>
<class name="data-table"/>
</style>
@ -136,7 +135,9 @@
<interface>
<template class="GtkListItem">
<property name="child">
<object class="GtkTreeExpander" id="expander">
<object class="SysprofTreeExpander" id="expander">
<property name="focusable">true</property>
<property name="menu-model">menu_model</property>
<child>
<object class="GtkShortcutController">
<property name="propagation-phase">capture</property>
@ -211,6 +212,15 @@
</object>
</property>
</template>
<menu id="menu_model">
<section>
<attribute name="label" translatable="yes">Callgraph</attribute>
<item>
<attribute name="label" translatable="yes">Set Function as Root</attribute>
<attribute name="action">callgraph.make-descendant-root</attribute>
</item>
</section>
</menu>
</interface>
]]></property>
</object>