diff options
author | dgp <dgp@users.sourceforge.net> | 2020-11-10 17:58:34 (GMT) |
---|---|---|
committer | dgp <dgp@users.sourceforge.net> | 2020-11-10 17:58:34 (GMT) |
commit | 6bf3b7356d8f53c983b5a5a196752afd7031000d (patch) | |
tree | b25d9e14f68a409a3bb30e1b0d0fe87f96670705 /library | |
parent | c2eb7f87d2d736efb9a7fc487ac996fe0030d612 (diff) | |
parent | 5c53cd20a9fb061ca2f2e8bd5695a67302cdd5d4 (diff) | |
download | tk-6bf3b7356d8f53c983b5a5a196752afd7031000d.zip tk-6bf3b7356d8f53c983b5a5a196752afd7031000d.tar.gz tk-6bf3b7356d8f53c983b5a5a196752afd7031000d.tar.bz2 |
merge 8.6
Diffstat (limited to 'library')
-rw-r--r-- | library/comdlg.tcl | 9 | ||||
-rw-r--r-- | library/fontchooser.tcl | 2 |
2 files changed, 7 insertions, 4 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 diff --git a/library/fontchooser.tcl b/library/fontchooser.tcl index a9bd706..9d49c57 100644 --- a/library/fontchooser.tcl +++ b/library/fontchooser.tcl @@ -111,7 +111,7 @@ proc ::tk::fontchooser::Configure {args} { set cache [dict create -parent $S(-parent) -title $S(-title) \ -font $S(-font) -command $S(-command)] - set r [tclParseConfigSpec [namespace which -variable S] $specs "" $args] + set r [tclParseConfigSpec [namespace which -variable S] $specs DONTSETDEFAULTS $args] if {![winfo exists $S(-parent)]} { set code [list TK LOOKUP WINDOW $S(-parent)] set err "bad window path name \"$S(-parent)\"" |