author | Shawn O. Pearce <spearce@spearce.org> | |
Wed, 26 Sep 2007 18:05:54 +0000 (14:05 -0400) | ||
committer | Shawn O. Pearce <spearce@spearce.org> | |
Wed, 26 Sep 2007 18:06:08 +0000 (14:06 -0400) | ||
commit | 6f2d73ec0cb6d5937bb4a62a222f942e4f886d6e | |
tree | 179c76a119cd1006665c3b47a6f5968904df33ff | tree | snapshot |
parent | cd38c86fd8e8fbbc1d83b80f7d96cf19d8266196 | commit | diff |
git-gui: Don't delete console window namespaces too early
If the console finishes displaying its output and is "done" but
needs to draw a scrollbar to show the final output messages it
is possible for Tk to delete the window namespace before it does
the text widget updates, which means we are unable to add the
horizontal or vertical scrollbar to the window when the text
widget decides it cannot draw all glyphs on screen.
We need to delay deleting the window namespace until we know
the window is not going to ever be used again. This occurs if
we are done receiving output, the command is successful and the
window is closed, or if the window is open and the user chooses
to close the window after the command has completed.
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
If the console finishes displaying its output and is "done" but
needs to draw a scrollbar to show the final output messages it
is possible for Tk to delete the window namespace before it does
the text widget updates, which means we are unable to add the
horizontal or vertical scrollbar to the window when the text
widget decides it cannot draw all glyphs on screen.
We need to delay deleting the window namespace until we know
the window is not going to ever be used again. This occurs if
we are done receiving output, the command is successful and the
window is closed, or if the window is open and the user chooses
to close the window after the command has completed.
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
lib/console.tcl | diff | blob | history |