perf ui browser: Introduce ui_browser__show_title
authorArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 25 Feb 2011 14:33:31 +0000 (11:33 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 25 Feb 2011 14:33:31 +0000 (11:33 -0300)
commitb210b3bb1b002f27165325a5edb6ebce3c168e92
tree00f0eb582111919831d881727f81d59fba3591c1
parentc16bfe9ac389b13a37ff617a09682ecc0685960f
perf ui browser: Introduce ui_browser__show_title

Needed because we were only showing the title in ui_browser__show,
not in ui_browser__run, and in the run loop we may be calling other
browsers that would then change the title, when we go back to the
previous browser, we need to redraw the title.

We could have done this as the Newt help line, with pop, etc, but I
don't think its worth, doing it explicitely, when needed (some browsers
may not use the title area at all) seems enough/more flexible.

Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Cc: Tom Zanussi <tzanussi@gmail.com>
LKML-Reference: <new-submission>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/ui/browser.c
tools/perf/util/ui/browser.h