From da17b64cd4c2f564a53d71ee4ff1377756655510 Mon Sep 17 00:00:00 2001 From: nijtmans Date: Thu, 13 Jan 2011 07:39:12 +0000 Subject: [Patch #3154705] Close button has no effect --- ChangeLog | 4 ++++ library/msgbox.tcl | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 08fda09..2f61471 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2011-01-13 Jan Nijtmans + + * library/msgbox.tcl: [Patch #3154705] Close button has no effect + 2011-01-12 Jan Nijtmans * win/tcl.m4: handle --enable-64bit=ia64 for gcc diff --git a/library/msgbox.tcl b/library/msgbox.tcl index 0f77f7a..9b95efa 100644 --- a/library/msgbox.tcl +++ b/library/msgbox.tcl @@ -3,7 +3,7 @@ # Implements messageboxes for platforms that do not have native # messagebox support. # -# RCS: @(#) $Id: msgbox.tcl,v 1.40 2010/01/19 01:27:41 patthoyts Exp $ +# RCS: @(#) $Id: msgbox.tcl,v 1.41 2011/01/13 07:39:12 nijtmans Exp $ # # Copyright (c) 1994-1997 Sun Microsystems, Inc. # @@ -254,7 +254,7 @@ proc ::tk::MessageBox {args} { toplevel $w -class Dialog -bg $bg wm title $w $data(-title) wm iconname $w Dialog - wm protocol $w WM_DELETE_WINDOW { } + wm protocol $w WM_DELETE_WINDOW [list $w.$cancel invoke] # Message boxes should be transient with respect to their parent so that # they always stay on top of the parent window. But some window managers -- cgit v0.12