summaryrefslogtreecommitdiffstats
path: root/library/msgbox.tcl
diff options
context:
space:
mode:
authornijtmans <nijtmans@noemail.net>2011-01-13 07:39:11 (GMT)
committernijtmans <nijtmans@noemail.net>2011-01-13 07:39:11 (GMT)
commit96081b331ed8e1729f74a005b4ecdce5c1e9cfef (patch)
treedc3c9cc03f6c0ea5709b229221040cc3ba0bdea2 /library/msgbox.tcl
parent8f7097e8f74d41ae4de65d5c7828887113438a17 (diff)
downloadtk-96081b331ed8e1729f74a005b4ecdce5c1e9cfef.zip
tk-96081b331ed8e1729f74a005b4ecdce5c1e9cfef.tar.gz
tk-96081b331ed8e1729f74a005b4ecdce5c1e9cfef.tar.bz2
[Patch #3154705] Close button has no effect
FossilOrigin-Name: e4df8097115b54175d0a9075065835b57d2fa6ad
Diffstat (limited to 'library/msgbox.tcl')
-rw-r--r--library/msgbox.tcl4
1 files changed, 2 insertions, 2 deletions
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