summaryrefslogtreecommitdiffstats
path: root/library/msgbox.tcl
diff options
context:
space:
mode:
authorpatthoyts <patthoyts@users.sourceforge.net>2010-01-20 23:43:50 (GMT)
committerpatthoyts <patthoyts@users.sourceforge.net>2010-01-20 23:43:50 (GMT)
commit8653f8ec25290721bc6fac2a9c68bbff0a4c4eb3 (patch)
tree57e880fe1efd95782a3cb841debb5d8e410fd021 /library/msgbox.tcl
parent545af346b6b7f4d2e3c1bfa931e01202c6c7808d (diff)
downloadtk-8653f8ec25290721bc6fac2a9c68bbff0a4c4eb3.zip
tk-8653f8ec25290721bc6fac2a9c68bbff0a4c4eb3.tar.gz
tk-8653f8ec25290721bc6fac2a9c68bbff0a4c4eb3.tar.bz2
TIP #359: Extended window manager hints support for X11.
Diffstat (limited to 'library/msgbox.tcl')
-rw-r--r--library/msgbox.tcl4
1 files changed, 3 insertions, 1 deletions
diff --git a/library/msgbox.tcl b/library/msgbox.tcl
index 1da4607..60b733f 100644
--- a/library/msgbox.tcl
+++ b/library/msgbox.tcl
@@ -3,7 +3,7 @@
# Implements messageboxes for platforms that do not have native
# messagebox support.
#
-# RCS: @(#) $Id: msgbox.tcl,v 1.36.2.2 2009/08/24 21:19:35 dkf Exp $
+# RCS: @(#) $Id: msgbox.tcl,v 1.36.2.3 2010/01/20 23:43:51 patthoyts Exp $
#
# Copyright (c) 1994-1997 Sun Microsystems, Inc.
#
@@ -271,6 +271,8 @@ proc ::tk::MessageBox {args} {
if {$windowingsystem eq "aqua"} {
::tk::unsupported::MacWindowStyle style $w moveableModal {}
+ } elseif {$windowingsystem eq "x11"} {
+ wm attributes $w -type dialog
}
ttk::frame $w.bot;# -background $bg