perf ui tui: Register the error callbacks before initializing the widgets
authorArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 22 Oct 2015 19:44:17 +0000 (16:44 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 22 Oct 2015 19:44:17 +0000 (16:44 -0300)
commit464b01a48eb6be48bc58332e029760b5e40ea119
treececcde0a188cd9860b44696de8b5524aa0073805
parent39ff7cdb5a5e6b75dd049255615828c6531cd109
perf ui tui: Register the error callbacks before initializing the widgets

I.e. we want to tell the user about errors found during, for instance,
the ui_browser initialization, so that a call to ui__warning() appears
as a window waiting for a key to be pressed.

Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Borislav Petkov <bp@suse.de>
Cc: David Ahern <dsahern@gmail.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Stephane Eranian <eranian@google.com>
Cc: Wang Nan <wangnan0@huawei.com>
Link: http://lkml.kernel.org/n/tip-ederrwizcl6mfz10vfobl5qq@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/ui/tui/setup.c