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> <property name="propagate-natural-height">true</property>
<child> <child>
<object class="GtkColumnView" id="descendants_column_view"> <object class="GtkColumnView" id="descendants_column_view">
<signal name="activate" handler="descendant_activated_cb" swapped="true"/>
<style> <style>
<class name="data-table"/> <class name="data-table"/>
</style> </style>
@ -136,7 +135,9 @@
<interface> <interface>
<template class="GtkListItem"> <template class="GtkListItem">
<property name="child"> <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> <child>
<object class="GtkShortcutController"> <object class="GtkShortcutController">
<property name="propagation-phase">capture</property> <property name="propagation-phase">capture</property>
@ -211,6 +212,15 @@
</object> </object>
</property> </property>
</template> </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> </interface>
]]></property> ]]></property>
</object> </object>