summaryrefslogtreecommitdiffstats
path: root/library/demos
diff options
context:
space:
mode:
authordas <das@noemail.net>2009-04-10 16:42:13 (GMT)
committerdas <das@noemail.net>2009-04-10 16:42:13 (GMT)
commitd99778d40365d785319d70352d15a2ff6d3221f4 (patch)
tree7255177c24fd695eeb17dda223dae8a5b88a7799 /library/demos
parentd8b975e25d6cc0aedff239bdee9d1031fea8fdf6 (diff)
downloadtk-d99778d40365d785319d70352d15a2ff6d3221f4.zip
tk-d99778d40365d785319d70352d15a2ff6d3221f4.tar.gz
tk-d99778d40365d785319d70352d15a2ff6d3221f4.tar.bz2
* library/demos/filebox.tcl: only show "Motif Style Dialog" checkbutton
on X11 windowingsystem. FossilOrigin-Name: 706dcb490e544c02e1951aad79c7cbde5e5cadc1
Diffstat (limited to 'library/demos')
-rw-r--r--library/demos/filebox.tcl4
1 files changed, 2 insertions, 2 deletions
diff --git a/library/demos/filebox.tcl b/library/demos/filebox.tcl
index d914456..e6088d8 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.9 2007/12/13 15:27:07 dgp Exp $
+# RCS: @(#) $Id: filebox.tcl,v 1.9.2.1 2009/04/10 16:42:13 das Exp $
if {![info exists widgetDemo]} {
error "This script should be run from the \"widget\" demo."
@@ -35,7 +35,7 @@ foreach i {open save} {
pack $f -fill x -padx 1c -pady 3
}
-if {$tcl_platform(platform) eq "unix"} {
+if {[tk windowingsystem] eq "x11"} {
checkbutton $w.strict -text "Use Motif Style Dialog" \
-variable tk_strictMotif -onvalue 1 -offvalue 0
pack $w.strict -anchor c