]> git.baikalelectronics.ru Git - kernel.git/commit
perf ui: Consider the refreshed dimensions in ui_browser__show
authorArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 26 Jul 2010 16:47:15 +0000 (13:47 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 27 Jul 2010 14:24:31 +0000 (11:24 -0300)
commitb3fe5fdb3bfb6a23d3d567ac7daf6e8e74b10ef5
tree10ad4ed0c2b6721025666afd13b3b20f63069c1f
parent9c0c6438d1af5149d2cc09328f54b908c6f00174
perf ui: Consider the refreshed dimensions in ui_browser__show

When we call ui_browser__show we may have called
ui_browser__refresh_dimensions to check if the maximum lenght for the
contained entries changed, such as when zooming in and out DSOs or
threads in the hist browser.

For that to happen we must delete the old form, that will take care of
deleting the vertical scrollbar, etc, and then recreate them, with the
new dimensions.

Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
LKML-Reference: <new-submission>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/newt.c