author | Shawn O. Pearce <spearce@spearce.org> | |
Tue, 12 Jun 2007 03:52:43 +0000 (23:52 -0400) | ||
committer | Shawn O. Pearce <spearce@spearce.org> | |
Tue, 12 Jun 2007 03:52:43 +0000 (23:52 -0400) | ||
commit | 39fa2a983d55b37759b99e67f9f1892879efb775 | |
tree | 1be07eaef87b5c614b4b8559c91ddb62e6342c8a | tree | snapshot |
parent | b2f3bb1b66d9422aa5049f994c6e370a18d89759 | commit | diff |
git-gui: Save geometry before the window layout is damaged
Because Tk does not assure us the order that it will process
children in before it destroys the main toplevel we cannot safely
save our geometry data during a "bind . <Destroy>" event binding.
The geometry may have already changed as a result of a one or
more children being removed from the layout. This was pointed
out in gitk by Mark Levedahl, and patched over there by commit
b6047c5a8166a71e01c6b63ebbb67c6894d95114.
So we now also use "wm protocol . WM_DELETE_WINDOW" to detect when
the window is closed by the user, and forward that close event to
our main do_quit routine.
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Because Tk does not assure us the order that it will process
children in before it destroys the main toplevel we cannot safely
save our geometry data during a "bind . <Destroy>" event binding.
The geometry may have already changed as a result of a one or
more children being removed from the layout. This was pointed
out in gitk by Mark Levedahl, and patched over there by commit
b6047c5a8166a71e01c6b63ebbb67c6894d95114.
So we now also use "wm protocol . WM_DELETE_WINDOW" to detect when
the window is closed by the user, and forward that close event to
our main do_quit routine.
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
git-gui.sh | diff | blob | history | |
lib/blame.tcl | diff | blob | history | |
lib/browser.tcl | diff | blob | history | |
lib/class.tcl | diff | blob | history | |
lib/console.tcl | diff | blob | history | |
lib/merge.tcl | diff | blob | history |