summaryrefslogtreecommitdiffstats
path: root/library
diff options
context:
space:
mode:
authorkennykb <kennykb@noemail.net>2007-11-26 20:00:52 (GMT)
committerkennykb <kennykb@noemail.net>2007-11-26 20:00:52 (GMT)
commitf409585c705f8ddb6e931437b51c99860a1ab342 (patch)
treeabab5c23247a029471a38a8a7e3ceac3752cdf76 /library
parent71489c4faa17e3a71705e62a5e387a2a3c57ee9f (diff)
downloadtk-f409585c705f8ddb6e931437b51c99860a1ab342.zip
tk-f409585c705f8ddb6e931437b51c99860a1ab342.tar.gz
tk-f409585c705f8ddb6e931437b51c99860a1ab342.tar.bz2
* library/tkfbox.tcl (VerifyFileName): Corrected a couple
of typos in handling of bad file names. [Bug #1822076] * tests/filebox.test (filebox-7.1, filebox-7.2): Added test cases that exercise the above bug. Thanks to Christoph Bauer (fridolin@users.sf.net) for the patch. FossilOrigin-Name: 27c8361229b773ae529b789e845fc82fbde8a6ec
Diffstat (limited to 'library')
-rw-r--r--library/tkfbox.tcl9
1 files changed, 5 insertions, 4 deletions
diff --git a/library/tkfbox.tcl b/library/tkfbox.tcl
index 51c7d9c..82f4075 100644
--- a/library/tkfbox.tcl
+++ b/library/tkfbox.tcl
@@ -11,7 +11,7 @@
# files by clicking on the file icons or by entering a filename
# in the "Filename:" entry.
#
-# RCS: @(#) $Id: tkfbox.tcl,v 1.66 2007/11/21 16:29:08 dkf Exp $
+# RCS: @(#) $Id: tkfbox.tcl,v 1.67 2007/11/26 20:00:52 kennykb Exp $
#
# Copyright (c) 1994-1998 Sun Microsystems, Inc.
#
@@ -1682,13 +1682,14 @@ proc ::tk::dialog::file::VerifyFileName {w filename} {
$data(ent) icursor end
}
CHDIR {
- tk_messageBox -type ok -parent $w -message -icon warning \
- [mc "Cannot change to the directory \"%1\$s\".\nPermission denied." $path]
+ tk_messageBox -type ok -parent $w -icon warning -message \
+ [mc "Cannot change to the directory\
+ \"%1\$s\".\nPermission denied." $path]
$data(ent) selection range 0 end
$data(ent) icursor end
}
ERROR {
- tk_messageBox -type ok -parent $w -message -icon warning \
+ tk_messageBox -type ok -parent $w -icon warning -message \
[mc "Invalid file name \"%1\$s\"." $path]
$data(ent) selection range 0 end
$data(ent) icursor end