diff options
author | fvogel <fvogelnew1@free.fr> | 2016-10-30 18:01:51 (GMT) |
---|---|---|
committer | fvogel <fvogelnew1@free.fr> | 2016-10-30 18:01:51 (GMT) |
commit | fa9df7b1d04b12846e08d6bd9c0961629f30e222 (patch) | |
tree | 1c069940d9f64948b577dd6f21dbc5be14a1f00f /library/xmfbox.tcl | |
parent | a5f7470fb2e495084108b199c82e9d5d963601b0 (diff) | |
download | tk-fa9df7b1d04b12846e08d6bd9c0961629f30e222.zip tk-fa9df7b1d04b12846e08d6bd9c0961629f30e222.tar.gz tk-fa9df7b1d04b12846e08d6bd9c0961629f30e222.tar.bz2 |
Revert unintentional removal of ::tk_getFileType that happened in [374cb204]
Diffstat (limited to 'library/xmfbox.tcl')
-rw-r--r-- | library/xmfbox.tcl | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/library/xmfbox.tcl b/library/xmfbox.tcl index f1daea0..14d2be5 100644 --- a/library/xmfbox.tcl +++ b/library/xmfbox.tcl @@ -210,6 +210,7 @@ proc ::tk::MotifFDialog_SetFilter {w type} { variable ::tk::Priv set data(filter) [lindex $type 1] + set Priv(selectFileType) [lindex [lindex $type 0] 0] MotifFDialog_Update $w } @@ -980,3 +981,9 @@ proc ::tk::ListBoxKeyAccel_Reset {w} { unset -nocomplain Priv(lbAccel,$w) } +proc ::tk_getFileType {} { + variable ::tk::Priv + + return $Priv(selectFileType) +} + |