summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--library/xmfbox.tcl7
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)
+}
+