Merge branch 'fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/evalenti/linux...
[linux/fpc-iii.git] / tools / perf / ui / gtk / setup.c
blob1d57676f82124d82e18d032e349e879e09a060e8
1 #include "gtk.h"
2 #include "../../util/cache.h"
3 #include "../../util/debug.h"
5 extern struct perf_error_ops perf_gtk_eops;
7 int perf_gtk__init(void)
9 perf_error__register(&perf_gtk_eops);
10 perf_gtk__init_helpline();
11 gtk_ui_progress__init();
12 perf_gtk__init_hpp();
14 return gtk_init_check(NULL, NULL) ? 0 : -1;
17 void perf_gtk__exit(bool wait_for_ok __maybe_unused)
19 if (!perf_gtk__is_active_context(pgctx))
20 return;
21 perf_error__unregister(&perf_gtk_eops);
22 gtk_main_quit();