summaryrefslogtreecommitdiffstats
path: root/tools/perf/ui/gtk/setup.c
diff options
context:
space:
mode:
authorNamhyung Kim <namhyung.kim@lge.com>2012-11-13 14:30:33 +0100
committerArnaldo Carvalho de Melo <acme@redhat.com>2012-11-14 20:52:48 +0100
commita753579c3ec096bba9d24e1594a07dbb25aca8e4 (patch)
tree9324d6e2a658ca338619f88f4fbd91089a6e781d /tools/perf/ui/gtk/setup.c
parentperf ui: Introduce generic ui_progress helper (diff)
downloadlinux-a753579c3ec096bba9d24e1594a07dbb25aca8e4.tar.xz
linux-a753579c3ec096bba9d24e1594a07dbb25aca8e4.zip
perf ui gtk: Implement ui_progress functions
Implement progress update function for GTK2 front end. Note that since it will be called before gtk main loop so that we should call gtk event loop handler directly. Signed-off-by: Namhyung Kim <namhyung@kernel.org> Cc: Ingo Molnar <mingo@kernel.org> Cc: Pekka Enberg <penberg@kernel.org> Cc: Peter Zijlstra <peterz@infradead.org> Link: http://lkml.kernel.org/r/1352813436-14173-3-git-send-email-namhyung@kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/ui/gtk/setup.c')
-rw-r--r--tools/perf/ui/gtk/setup.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/perf/ui/gtk/setup.c b/tools/perf/ui/gtk/setup.c
index 3c4c6ef78283..6c2dd2e423f3 100644
--- a/tools/perf/ui/gtk/setup.c
+++ b/tools/perf/ui/gtk/setup.c
@@ -8,7 +8,9 @@ int perf_gtk__init(void)
{
perf_error__register(&perf_gtk_eops);
perf_gtk__init_helpline();
+ perf_gtk__init_progress();
perf_gtk__init_hpp();
+
return gtk_init_check(NULL, NULL) ? 0 : -1;
}