summaryrefslogtreecommitdiffstats
path: root/library/tkfbox.tcl
diff options
context:
space:
mode:
authorKevin B Kenny <kennykb@acm.org>2007-11-26 20:00:52 (GMT)
committerKevin B Kenny <kennykb@acm.org>2007-11-26 20:00:52 (GMT)
commit671bcba7bb5831707282a085723aaf9c2812fd9a (patch)
treeabab5c23247a029471a38a8a7e3ceac3752cdf76 /library/tkfbox.tcl
parent37a492a973a6293e2324e7a9d66dee21daf1d033 (diff)
downloadtk-671bcba7bb5831707282a085723aaf9c2812fd9a.zip
tk-671bcba7bb5831707282a085723aaf9c2812fd9a.tar.gz
tk-671bcba7bb5831707282a085723aaf9c2812fd9a.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.
Diffstat (limited to 'library/tkfbox.tcl')
-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