libsysprof-gtk: add column for process id

I wish we had a thread-id for messages, but that would require changing
the capture format and/or add a new frame type.
This commit is contained in:
Christian Hergert
2023-06-18 13:51:35 -07:00
parent 1e3345ae42
commit d4efcb04fa

View File

@ -77,6 +77,41 @@
</property>
</template>
</interface>
]]>
</property>
</object>
</property>
</object>
</child>
<child>
<object class="GtkColumnViewColumn" id="process_column">
<property name="title" translatable="yes">Process</property>
<property name="sorter">
<object class="GtkNumericSorter">
<property name="expression">
<lookup name="pid" type="SysprofDocumentFrame"/>
</property>
</object>
</property>
<property name="factory">
<object class="GtkBuilderListItemFactory">
<property name="bytes"><![CDATA[
<?xml version="1.0" encoding="UTF-8"?>
<interface>
<template class="GtkListItem">
<property name="child">
<object class="GtkLabel">
<property name="xalign">1</property>
<property name="single-line-mode">true</property>
<binding name="label">
<lookup name="pid" type="SysprofDocumentFrame">
<lookup name="item">GtkListItem</lookup>
</lookup>
</binding>
</object>
</property>
</template>
</interface>
]]>
</property>
</object>