perf ui/gtk: Use struct perf_error_ops
authorNamhyung Kim <namhyung@gmail.com>
Tue, 29 May 2012 04:23:02 +0000 (13:23 +0900)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 19 Jun 2012 16:06:19 +0000 (13:06 -0300)
commite078ba14dff5c315ce19a978574883f417d2cfa0
tree81fefb44d9ea360e3a943f58e088ba97039a2148
parenta6b702c117f839023814c1e03453c701d26de522
perf ui/gtk: Use struct perf_error_ops

Define and use perf_gtk_eops to provide a GTK2 message dialog for error
reporting and a info_bar for warning.

As GtkInfoBar requires recent GTK+ libraries, provides a fallback
implementation using statusbar widget too.

Signed-off-by: Namhyung Kim <namhyung@gmail.com>
Acked-by: Pekka Enberg <penberg@kernel.org>
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/1338265382-6872-8-git-send-email-namhyung@gmail.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/ui/gtk/setup.c
tools/perf/ui/gtk/util.c