2012-04-30 12:55:08 +08:00
|
|
|
#include "gtk.h"
|
|
|
|
#include "../../util/cache.h"
|
2012-05-29 12:23:02 +08:00
|
|
|
#include "../../util/debug.h"
|
|
|
|
|
|
|
|
extern struct perf_error_ops perf_gtk_eops;
|
2012-04-30 12:55:08 +08:00
|
|
|
|
2012-04-30 12:55:09 +08:00
|
|
|
int perf_gtk__init(void)
|
2012-04-30 12:55:08 +08:00
|
|
|
{
|
2012-05-29 12:23:02 +08:00
|
|
|
perf_error__register(&perf_gtk_eops);
|
2012-04-30 12:55:09 +08:00
|
|
|
return gtk_init_check(NULL, NULL) ? 0 : -1;
|
2012-04-30 12:55:08 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
void perf_gtk__exit(bool wait_for_ok __used)
|
|
|
|
{
|
2012-05-29 12:23:02 +08:00
|
|
|
perf_error__unregister(&perf_gtk_eops);
|
2012-04-30 12:55:08 +08:00
|
|
|
gtk_main_quit();
|
|
|
|
}
|