gitk: Wait for the window to become visible after creating it
commit0eafba1405bf4db29bca0b535477beb3046441bf
authorPaul Mackerras <paulus@samba.org>
Mon, 23 Jul 2007 11:35:03 +0000 (23 21:35 +1000)
committerPaul Mackerras <paulus@samba.org>
Mon, 23 Jul 2007 11:35:03 +0000 (23 21:35 +1000)
treef33ecb7bddd8e507f1f99d6da3f922e0fd54a462
parentd23d98d3ba21b2a7a1d30be049bfb5d9c0a4e943
gitk: Wait for the window to become visible after creating it

When the git log process returned an error immediately, we were
sometimes getting no main window and no error window displayed,
with the gitk process just hanging waiting for something.  It appears
that the tkwait in show_error, which waits for the error window to
be destroyed, wasn't sufficient to allow the main window or the error
window to be mapped.

This adds a wait in the main startup code after the main window
has been created to wait until it is visible.  This seems to fix the
problem.

Signed-off-by: Paul Mackerras <paulus@samba.org>
gitk