summaryrefslogtreecommitdiffstats
path: root/library/dialog.tcl
diff options
context:
space:
mode:
authorpatthoyts <patthoyts@users.sourceforge.net>2010-01-23 01:36:03 (GMT)
committerpatthoyts <patthoyts@users.sourceforge.net>2010-01-23 01:36:03 (GMT)
commit733aa079ae7a00cc9a223dbe7c241d80b375021e (patch)
tree8500a7a8b539c7fd4556fc1e9ebfc09d25c5b9f6 /library/dialog.tcl
parent8b4e67afad45324f1e560417e3429252383c1263 (diff)
downloadtk-733aa079ae7a00cc9a223dbe7c241d80b375021e.zip
tk-733aa079ae7a00cc9a223dbe7c241d80b375021e.tar.gz
tk-733aa079ae7a00cc9a223dbe7c241d80b375021e.tar.bz2
TIP #359: Extended Window Manager Hints support for 8.4
Diffstat (limited to 'library/dialog.tcl')
-rw-r--r--library/dialog.tcl4
1 files changed, 3 insertions, 1 deletions
diff --git a/library/dialog.tcl b/library/dialog.tcl
index e083cf1..d94a0b2 100644
--- a/library/dialog.tcl
+++ b/library/dialog.tcl
@@ -3,7 +3,7 @@
# This file defines the procedure tk_dialog, which creates a dialog
# box containing a bitmap, a message, and one or more buttons.
#
-# RCS: @(#) $Id: dialog.tcl,v 1.14.2.5 2007/05/30 06:37:03 das Exp $
+# RCS: @(#) $Id: dialog.tcl,v 1.14.2.6 2010/01/23 01:36:03 patthoyts Exp $
#
# Copyright (c) 1992-1993 The Regents of the University of California.
# Copyright (c) 1994-1997 Sun Microsystems, Inc.
@@ -75,6 +75,8 @@ proc ::tk_dialog {w title text bitmap default args} {
if {$tcl_platform(platform) eq "macintosh" || $windowingsystem eq "aqua"} {
::tk::unsupported::MacWindowStyle style $w moveableModal {}
+ } elseif {$windowingsystem eq "x11"} {
+ wm attributes $w -type dialog
}
frame $w.bot