mirror of
https://github.com/torvalds/linux.git
synced 2026-11-26 00:12:52 +00:00
If gtk2 support is not enabled (or failed for some reason) try TUI again instead of falling directly back to the stdio interface. Signed-off-by: Namhyung Kim <[email protected]> Acked-by: Pekka Enberg <[email protected]> Cc: Ingo Molnar <[email protected]> Cc: Namhyung Kim <[email protected]> Cc: Paul Mackerras <[email protected]> Cc: Pekka Enberg <[email protected]> Cc: Peter Zijlstra <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
13 lines
190 B
C
13 lines
190 B
C
#include "gtk.h"
|
|
#include "../../util/cache.h"
|
|
|
|
int perf_gtk__init(void)
|
|
{
|
|
return gtk_init_check(NULL, NULL) ? 0 : -1;
|
|
}
|
|
|
|
void perf_gtk__exit(bool wait_for_ok __used)
|
|
{
|
|
gtk_main_quit();
|
|
}
|