summaryrefslogtreecommitdiffstats
path: root/library/xmfbox.tcl
diff options
context:
space:
mode:
authorericm <ericm>2000-06-30 20:19:06 (GMT)
committerericm <ericm>2000-06-30 20:19:06 (GMT)
commit4ea21e7c7a8efc810e06538dc01f09547fce9e87 (patch)
treeac4757d8dfa96eec851c416a384f4d2852ab97fb /library/xmfbox.tcl
parent360ba5a659a8fac08458227696f08e8786486821 (diff)
downloadtk-4ea21e7c7a8efc810e06538dc01f09547fce9e87.zip
tk-4ea21e7c7a8efc810e06538dc01f09547fce9e87.tar.gz
tk-4ea21e7c7a8efc810e06538dc01f09547fce9e87.tar.bz2
* tests/filebox.test: Adjusted tests to accomodate -multiple.
* library/xmfbox.tcl: Adjusted arguments list construction such that -multiple is not presented as an option for tk_getSaveFile. * library/tk.tcl: Added test for safe interpreter status before attempting to load message catalogs (which is impossible in a standard safe interpreter). This means that SafeTk will not have localized dialogs, unless a means is found for loading the message catalog files.
Diffstat (limited to 'library/xmfbox.tcl')
-rw-r--r--library/xmfbox.tcl7
1 files changed, 5 insertions, 2 deletions
diff --git a/library/xmfbox.tcl b/library/xmfbox.tcl
index 5a0dfb0..1861abc 100644
--- a/library/xmfbox.tcl
+++ b/library/xmfbox.tcl
@@ -4,7 +4,7 @@
# Unix platform. This implementation is used only if the
# "tk_strictMotif" flag is set.
#
-# RCS: @(#) $Id: xmfbox.tcl,v 1.13 2000/06/30 06:38:39 ericm Exp $
+# RCS: @(#) $Id: xmfbox.tcl,v 1.14 2000/06/30 20:19:07 ericm Exp $
#
# Copyright (c) 1996 Sun Microsystems, Inc.
# Copyright (c) 1998-2000 Scriptics Corporation
@@ -217,9 +217,12 @@ proc tkMotifFDialog_Config {dataName type argList} {
{-initialfile "" "" ""}
{-parent "" "" "."}
{-title "" "" ""}
- {-multiple "" "" "0"}
+ }
+ if { [string equal $type "open"] } {
+ lappend specs {-multiple "" "" "0"}
}
+ set data(-multiple) 0
# 2: default values depending on the type of the dialog
#
if {![info exists data(selectPath)]} {