libsysprof-gtk: make xy series compile

We aren't using this, but this makes it fit the form of the rest of the
things in here.
This commit is contained in:
Christian Hergert
2023-06-23 18:16:03 -07:00
parent 808c633068
commit 4282ff2b15
3 changed files with 21 additions and 5 deletions

View File

@ -20,6 +20,7 @@
#include "config.h"
#include "sysprof-series-private.h"
#include "sysprof-xy-series.h"
#include "sysprof-xy-series-item-private.h"
@ -30,6 +31,11 @@ struct _SysprofXYSeries
GtkExpression *y_expression;
};
struct _SysprofXYSeriesClass
{
SysprofSeriesClass parent_instance;
};
enum {
PROP_0,
PROP_X_EXPRESSION,
@ -42,9 +48,12 @@ G_DEFINE_FINAL_TYPE (SysprofXYSeries, sysprof_xy_series, SYSPROF_TYPE_SERIES)
static GParamSpec *properties [N_PROPS];
static gpointer
sysprof_xy_series_get_series_item (SysprofXYSeries *self,
gpointer item)
sysprof_xy_series_get_series_item (SysprofSeries *series,
guint position,
gpointer item)
{
SysprofXYSeries *self = SYSPROF_XY_SERIES (series);
return _sysprof_xy_series_item_new (item,
gtk_expression_ref (self->x_expression),
gtk_expression_ref (self->y_expression));