summaryrefslogtreecommitdiffstats
path: root/library/ttk
diff options
context:
space:
mode:
authorpatthoyts <patthoyts@users.sourceforge.net>2010-01-19 01:27:40 (GMT)
committerpatthoyts <patthoyts@users.sourceforge.net>2010-01-19 01:27:40 (GMT)
commit18681848c901d1e0eb876c8b8c1b7d4106270326 (patch)
tree95c6d997a9463598d66fbd5bf9cb8cadef30fe42 /library/ttk
parent9d3723c6edd4a296d7c70d759ff8ad4ec0a631d0 (diff)
downloadtk-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/ttk')
-rw-r--r--library/ttk/combobox.tcl6
1 files changed, 3 insertions, 3 deletions
diff --git a/library/ttk/combobox.tcl b/library/ttk/combobox.tcl
index ff41366..20bfc07 100644
--- a/library/ttk/combobox.tcl
+++ b/library/ttk/combobox.tcl
@@ -1,5 +1,5 @@
#
-# $Id: combobox.tcl,v 1.19 2009/11/12 18:17:14 jenglish Exp $
+# $Id: combobox.tcl,v 1.20 2010/01/19 01:27:41 patthoyts Exp $
#
# Combobox bindings.
#
@@ -271,8 +271,7 @@ proc ttk::combobox::PopdownWindow {cb} {
if {![winfo exists $cb.popdown]} {
set poplevel [PopdownToplevel $cb.popdown]
-
- set popdown [ttk::frame $poplevel.f -style ComboboxPopdownFrame]
+ set popdown [ttk::frame $poplevel.f -style ComboboxPopdownFrame]
$scrollbar $popdown.sb \
-orient vertical -command [list $popdown.l yview]
@@ -310,6 +309,7 @@ proc ttk::combobox::PopdownToplevel {w} {
default -
x11 {
$w configure -relief flat -borderwidth 0
+ wm attributes $w -type combo
wm overrideredirect $w true
}
win32 {