From 39fa2a983d55b37759b99e67f9f1892879efb775 Mon Sep 17 00:00:00 2001 From: "Shawn O. Pearce" Date: Mon, 11 Jun 2007 23:52:43 -0400 Subject: 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 . " 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 --- lib/blame.tcl | 1 - 1 file changed, 1 deletion(-) (limited to 'lib/blame.tcl') diff --git a/lib/blame.tcl b/lib/blame.tcl index 98687c77da..139171d39e 100644 --- a/lib/blame.tcl +++ b/lib/blame.tcl @@ -289,7 +289,6 @@ constructor new {i_commit i_path} { bind $w_cviewer [list focus $w_cviewer] bind $top [list focus $top] - bind $w_file [list delete_this $this] grid configure $w.header -sticky ew grid configure $w.file_pane -sticky nsew -- cgit v1.2.3