From 3938426eec1ec1156da28475d2802ea2aa706fe5 Mon Sep 17 00:00:00 2001 From: fvogel Date: Sun, 30 Oct 2016 18:01:51 +0000 Subject: Revert unintentional removal of ::tk_getFileType that happened in [374cb204] --- library/xmfbox.tcl | 7 +++++++ 1 file changed, 7 insertions(+) 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) +} + -- cgit v0.12