summaryrefslogtreecommitdiffstats
path: root/library
diff options
context:
space:
mode:
authordgp@users.sourceforge.net <dgp>2011-10-31 14:07:07 (GMT)
committerdgp@users.sourceforge.net <dgp>2011-10-31 14:07:07 (GMT)
commitac1b5d028e4ab9a05dc89432155657e55fa7a670 (patch)
tree18c8f3f977286735dd8569a44d6b15f0fa16f9f1 /library
parent9e612596b00cf63294c8093c619d718d44d7bb4f (diff)
downloadtk-ac1b5d028e4ab9a05dc89432155657e55fa7a670.zip
tk-ac1b5d028e4ab9a05dc89432155657e55fa7a670.tar.gz
tk-ac1b5d028e4ab9a05dc89432155657e55fa7a670.tar.bz2
TIP 382 test suite update and Motif dialog implementation.
Diffstat (limited to 'library')
-rw-r--r--library/xmfbox.tcl6
1 files changed, 5 insertions, 1 deletions
diff --git a/library/xmfbox.tcl b/library/xmfbox.tcl
index d511462..0cbf251 100644
--- a/library/xmfbox.tcl
+++ b/library/xmfbox.tcl
@@ -246,8 +246,12 @@ proc ::tk::MotifFDialog_Config {dataName type argList} {
if {$type eq "open"} {
lappend specs {-multiple "" "" "0"}
}
+ if {$type eq "save"} {
+ lappend specs {-confirmoverwrite "" "" "1"}
+ }
set data(-multiple) 0
+ set data(-confirmoverwrite) 1
# 2: default values depending on the type of the dialog
#
if {![info exists data(selectPath)]} {
@@ -847,7 +851,7 @@ proc ::tk::MotifFDialog_ActivateSEnt {w} {
-message [mc {File "%1$s" does not exist.} $item]
return
}
- } elseif {$data(type) eq "save"} {
+ } elseif {$data(type) eq "save" && $data(-confirmoverwrite)} {
set message [format %s%s \
[mc "File \"%1\$s\" already exists.\n\n" $selectFilePath] \
[mc {Replace existing file?}]]