gtk-stats: Fix compile error on manylinux2014 with G_SOURCE_FUNC

[skip ci]
This commit is contained in:
rdb 2022-11-05 15:59:39 +01:00
parent 523e1bcbb8
commit e56c1a0a98

View File

@ -498,12 +498,11 @@ create_window() {
gtk_widget_realize(_window);
// Set up a timer to poll the pstats every so often.
g_timeout_add(200,
G_SOURCE_FUNC(+[](gpointer data) -> gboolean {
GtkStatsServer *self = (GtkStatsServer *)data;
self->poll();
return TRUE;
}), this);
g_timeout_add(200, +[](gpointer data) -> gboolean {
GtkStatsServer *self = (GtkStatsServer *)data;
self->poll();
return TRUE;
}, this);
}
/**