summaryrefslogtreecommitdiffstats
path: root/library/demos
diff options
context:
space:
mode:
authordkf <dkf@noemail.net>2004-09-10 20:48:39 (GMT)
committerdkf <dkf@noemail.net>2004-09-10 20:48:39 (GMT)
commit76e3dd2102aab58bd8af540e9209f5194f9ed0ad (patch)
treeb980dfd0bd2c7df7eca7a4b5316fbef4c6e2762a /library/demos
parent032c87cbfb678e22cdfaad8245b404f228678b46 (diff)
downloadtk-76e3dd2102aab58bd8af540e9209f5194f9ed0ad.zip
tk-76e3dd2102aab58bd8af540e9209f5194f9ed0ad.tar.gz
tk-76e3dd2102aab58bd8af540e9209f5194f9ed0ad.tar.bz2
Stop tk_strictMotif poisoning of the widget demo [Bug 1013942]
FossilOrigin-Name: ba7607eeaa004c8843afdcee28e6a4ac15393f99
Diffstat (limited to 'library/demos')
-rw-r--r--library/demos/filebox.tcl6
1 files changed, 5 insertions, 1 deletions
diff --git a/library/demos/filebox.tcl b/library/demos/filebox.tcl
index 4401d06..bb6f251 100644
--- a/library/demos/filebox.tcl
+++ b/library/demos/filebox.tcl
@@ -2,7 +2,7 @@
#
# This demonstration script prompts the user to select a file.
#
-# RCS: @(#) $Id: filebox.tcl,v 1.3 2001/06/14 10:56:58 dkf Exp $
+# RCS: @(#) $Id: filebox.tcl,v 1.3.4.1 2004/09/10 20:48:41 dkf Exp $
if {![info exists widgetDemo]} {
error "This script should be run from the \"widget\" demo."
@@ -39,6 +39,10 @@ if {![string compare $tcl_platform(platform) unix]} {
checkbutton $w.strict -text "Use Motif Style Dialog" \
-variable tk_strictMotif -onvalue 1 -offvalue 0
pack $w.strict -anchor c
+
+ # This binding ensures that we don't run the rest of the demos
+ # with motif style interactions
+ bind $w.strict <Destroy> {set tk_strictMotif 0}
}
proc fileDialog {w ent operation} {