libsysprof-gtk: get expressions for x/y of counter values

This commit is contained in:
Christian Hergert
2023-06-26 18:14:25 -07:00
parent b022b1537e
commit 696205aaf2
3 changed files with 14 additions and 3 deletions

View File

@ -202,6 +202,7 @@ test_charts_class_init (TestChartsClass *klass)
g_type_ensure (SYSPROF_TYPE_CHART_LAYER);
g_type_ensure (SYSPROF_TYPE_COLUMN_LAYER);
g_type_ensure (SYSPROF_TYPE_LINE_LAYER);
g_type_ensure (SYSPROF_TYPE_DOCUMENT_COUNTER_VALUE);
g_type_ensure (SYSPROF_TYPE_VALUE_AXIS);
}

View File

@ -108,10 +108,10 @@
<lookup name="item">GtkListItem</lookup>
</binding>
<property name="x-expression">
<lookup name="time" type="SysprofDocumentFrame"/>
<lookup name="time" type="SysprofDocumentCounterValue"/>
</property>
<property name="y-expression">
<lookup name="time" type="SysprofDocumentFrame"/>
<lookup name="value-double" type="SysprofDocumentCounterValue"/>
</property>
</object>
</property>