diff options
author | patthoyts <patthoyts@users.sourceforge.net> | 2010-01-19 01:27:40 (GMT) |
---|---|---|
committer | patthoyts <patthoyts@users.sourceforge.net> | 2010-01-19 01:27:40 (GMT) |
commit | 18681848c901d1e0eb876c8b8c1b7d4106270326 (patch) | |
tree | 95c6d997a9463598d66fbd5bf9cb8cadef30fe42 /library/dialog.tcl | |
parent | 9d3723c6edd4a296d7c70d759ff8ad4ec0a631d0 (diff) | |
download | tk-18681848c901d1e0eb876c8b8c1b7d4106270326.zip tk-18681848c901d1e0eb876c8b8c1b7d4106270326.tar.gz tk-18681848c901d1e0eb876c8b8c1b7d4106270326.tar.bz2 |
TIP #359: Extended window manager hints support for X11.
Modern unix window managers use a set of window properties to give
hints as to the purpose of a toplevel window. They then use these
hints to apply various animation and decoration options based on the
type (dialog, menu, tooltip and more).
This patch adds a [wm attributes $w -type] option to control and read
the type hint and makes use of this for the ttk::combobox and the
dialogs raised from the Tk library scripts.
Signed-off-by: Pat Thoyts <patthoyts@users.sourceforge.net>
Diffstat (limited to 'library/dialog.tcl')
-rw-r--r-- | library/dialog.tcl | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/library/dialog.tcl b/library/dialog.tcl index 5012823..162ecbe 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.25 2010/01/04 21:22:08 patthoyts Exp $ +# RCS: @(#) $Id: dialog.tcl,v 1.26 2010/01/19 01:27:41 patthoyts Exp $ # # Copyright (c) 1992-1993 The Regents of the University of California. # Copyright (c) 1994-1997 Sun Microsystems, Inc. @@ -74,6 +74,8 @@ proc ::tk_dialog {w title text bitmap default args} { if {$windowingsystem eq "aqua"} { ::tk::unsupported::MacWindowStyle style $w moveableModal {} + } elseif {$windowingsystem eq "x11"} { + wm attributes $w -type dialog } frame $w.bot |