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/tkfbox.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/tkfbox.tcl')
-rw-r--r-- | library/tkfbox.tcl | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/library/tkfbox.tcl b/library/tkfbox.tcl index b3c7156..0e091ab 100644 --- a/library/tkfbox.tcl +++ b/library/tkfbox.tcl @@ -10,7 +10,7 @@ # "Directory" option menu. The user can select files by clicking on the # file icons or by entering a filename in the "Filename:" entry. # -# RCS: @(#) $Id: tkfbox.tcl,v 1.75 2009/10/22 10:12:57 dkf Exp $ +# RCS: @(#) $Id: tkfbox.tcl,v 1.76 2010/01/19 01:27:41 patthoyts Exp $ # # Copyright (c) 1994-1998 Sun Microsystems, Inc. # @@ -330,6 +330,7 @@ proc ::tk::dialog::file::Create {w class} { global tk_library toplevel $w -class $class + if {[tk windowingsystem] eq "x11"} {wm attributes $w -type dialog} pack [ttk::frame $w.contents] -expand 1 -fill both #set w $w.contents |