mirror of
https://github.com/FEX-Emu/linux.git
synced 2025-01-13 04:41:17 +00:00
dc41b9b8f0
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 <namhyung.kim@lge.com> Acked-by: Pekka Enberg <penberg@kernel.org> Cc: Ingo Molnar <mingo@redhat.com> Cc: Namhyung Kim <namhyung@gmail.com> Cc: Paul Mackerras <paulus@samba.org> Cc: Pekka Enberg <penberg@kernel.org> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Link: http://lkml.kernel.org/r/1335761711-31403-6-git-send-email-namhyung.kim@lge.com Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
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();
|
|
}
|