summaryrefslogtreecommitdiffstats
path: root/tools/perf/ui/gtk/setup.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/perf/ui/gtk/setup.c')
-rw-r--r--tools/perf/ui/gtk/setup.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/perf/ui/gtk/setup.c b/tools/perf/ui/gtk/setup.c
index 8c3b573e863d..829529957766 100644
--- a/tools/perf/ui/gtk/setup.c
+++ b/tools/perf/ui/gtk/setup.c
@@ -1,9 +1,9 @@
#include "gtk.h"
#include "../../util/cache.h"
-void perf_gtk__init(bool fallback_to_pager __used)
+int perf_gtk__init(void)
{
- gtk_init(NULL, NULL);
+ return gtk_init_check(NULL, NULL) ? 0 : -1;
}
void perf_gtk__exit(bool wait_for_ok __used)
OpenPOWER on IntegriCloud