summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordas <das>2009-04-10 16:42:01 (GMT)
committerdas <das>2009-04-10 16:42:01 (GMT)
commita1723c5258aae0056d0a6ac2bdaf0e7b93658848 (patch)
tree52a8e69ccc5ec4c64cfb250b5556f9cef24b4e5d
parente824da9bff5c3e2d1965bdbaf631f1984b2dbfb4 (diff)
downloadtk-a1723c5258aae0056d0a6ac2bdaf0e7b93658848.zip
tk-a1723c5258aae0056d0a6ac2bdaf0e7b93658848.tar.gz
tk-a1723c5258aae0056d0a6ac2bdaf0e7b93658848.tar.bz2
* library/demos/filebox.tcl: only show "Motif Style Dialog" checkbutton
on X11 windowingsystem.
-rw-r--r--ChangeLog3
-rw-r--r--library/demos/filebox.tcl4
2 files changed, 5 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 1fdc918..d1e7cb3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
2008-04-10 Daniel Steffen <das@users.sourceforge.net>
+ * library/demos/filebox.tcl: only show "Motif Style Dialog" checkbutton
+ on X11 windowingsystem.
+
* library/demos/widget: GOOBE: use ttk::cursor
* library/demos/knightstour.tcl: fix knightstour demo not running from
diff --git a/library/demos/filebox.tcl b/library/demos/filebox.tcl
index d914456..63c7d59 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.10 2009/04/10 16:42:01 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