mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-28 07:48:37 -04:00
gtk-stats: Fix compile error on manylinux2014 with G_SOURCE_FUNC
[skip ci]
This commit is contained in:
parent
523e1bcbb8
commit
e56c1a0a98
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user