libsysprof-gtk: make chart row use :model property

This will allow us to make a map model and then bind from that after
filtering based on selection.
This commit is contained in:
Christian Hergert
2023-06-15 17:14:03 -07:00
parent 5e18436a15
commit f2f47b12d7
3 changed files with 44 additions and 29 deletions

View File

@ -22,16 +22,14 @@
#include <gtk/gtk.h>
#include <sysprof-analyze.h>
G_BEGIN_DECLS
#define SYSPROF_TYPE_MARK_CHART_ROW (sysprof_mark_chart_row_get_type())
G_DECLARE_FINAL_TYPE (SysprofMarkChartRow, sysprof_mark_chart_row, SYSPROF, MARK_CHART_ROW, GtkWidget)
SysprofMarkCatalog *sysprof_mark_chart_row_get_catalog (SysprofMarkChartRow *self);
void sysprof_mark_chart_row_set_catalog (SysprofMarkChartRow *self,
SysprofMarkCatalog *catalog);
GListModel *sysprof_mark_chart_row_get_model (SysprofMarkChartRow *self);
void sysprof_mark_chart_row_set_model (SysprofMarkChartRow *self,
GListModel *model);
G_END_DECLS