Commit | Line | Data |
---|---|---|
281ef544 NK |
1 | #include "gtk.h" |
2 | #include "../../util/cache.h" | |
e078ba14 NK |
3 | #include "../../util/debug.h" |
4 | ||
5 | extern struct perf_error_ops perf_gtk_eops; | |
281ef544 | 6 | |
dc41b9b8 | 7 | int perf_gtk__init(void) |
281ef544 | 8 | { |
e078ba14 | 9 | perf_error__register(&perf_gtk_eops); |
4bb1646a | 10 | perf_gtk__init_helpline(); |
12ceaded | 11 | perf_gtk__init_hpp(); |
dc41b9b8 | 12 | return gtk_init_check(NULL, NULL) ? 0 : -1; |
281ef544 NK |
13 | } |
14 | ||
1d037ca1 | 15 | void perf_gtk__exit(bool wait_for_ok __maybe_unused) |
281ef544 | 16 | { |
2708bf3a NK |
17 | if (!perf_gtk__is_active_context(pgctx)) |
18 | return; | |
e078ba14 | 19 | perf_error__unregister(&perf_gtk_eops); |
281ef544 NK |
20 | gtk_main_quit(); |
21 | } |