summaryrefslogtreecommitdiffstats
path: root/library/comdlg.tcl
diff options
context:
space:
mode:
authorfvogel <fvogelnew1@free.fr>2020-11-01 14:17:03 (GMT)
committerfvogel <fvogelnew1@free.fr>2020-11-01 14:17:03 (GMT)
commit4d296190563cb28ae6c394e243da8f70973290b5 (patch)
tree4405d8acea64ad090d4b186aad902b29468930ac /library/comdlg.tcl
parentab7e7f10137def475bf072146d6270b48a2efe49 (diff)
downloadtk-4d296190563cb28ae6c394e243da8f70973290b5.zip
tk-4d296190563cb28ae6c394e243da8f70973290b5.tar.gz
tk-4d296190563cb28ae6c394e243da8f70973290b5.tar.bz2
Fix [4ebcc04dc4]: tk fontchooser partial configure on X11 overwrites options not specified.
Diffstat (limited to 'library/comdlg.tcl')
-rw-r--r--library/comdlg.tcl9
1 files changed, 6 insertions, 3 deletions
diff --git a/library/comdlg.tcl b/library/comdlg.tcl
index 18df8a6..b4d8978 100644
--- a/library/comdlg.tcl
+++ b/library/comdlg.tcl
@@ -29,7 +29,8 @@
# {....}
# }
#
-# flags = currently unused.
+# flags = a list of flags. Currently supported flags are:
+# DONTSETDEFAULTS = skip default values setting
#
# argList = The list of "-option value" pairs.
#
@@ -63,8 +64,10 @@ proc tclParseConfigSpec {w specs flags argList} {
# 2: set the default values
#
- foreach cmdsw [array names cmd] {
- set data($cmdsw) $def($cmdsw)
+ if {"DONTSETDEFAULTS" ni $flags} {
+ foreach cmdsw [array names cmd] {
+ set data($cmdsw) $def($cmdsw)
+ }
}
# 3: parse the argument list