summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpatthoyts <patthoyts@users.sourceforge.net>2003-07-28 21:31:06 (GMT)
committerpatthoyts <patthoyts@users.sourceforge.net>2003-07-28 21:31:06 (GMT)
commit5fffee7b1c13de3e7bbcd8893e48d02a259a9b4d (patch)
tree6d0b21b680dc3cb0453c47b70f9faad85d75f84a
parenteca7c389aea5751ad1e804c470a746df7990ca26 (diff)
downloadtk-5fffee7b1c13de3e7bbcd8893e48d02a259a9b4d.zip
tk-5fffee7b1c13de3e7bbcd8893e48d02a259a9b4d.tar.gz
tk-5fffee7b1c13de3e7bbcd8893e48d02a259a9b4d.tar.bz2
* library/panedwindow.tcl: Apply patch from bug #778893 to make
the panedwindow -opaqueresize option work as per the docs.
-rw-r--r--ChangeLog3
-rw-r--r--library/panedwindow.tcl5
2 files changed, 7 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 0238623..22dc24e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
2003-07-28 Pat Thoyts <patthoyts@users.sourceforge.net>
+ * library/panedwindow.tcl: Apply patch from bug #778893 to make
+ the panedwindow -opaqueresize option work as per the docs.
+
* library/tk.tcl: Apply fix for bug #778840 for window placement
when using multiple desktops on windows.
diff --git a/library/panedwindow.tcl b/library/panedwindow.tcl
index 9f83d6e..7b7c25a 100644
--- a/library/panedwindow.tcl
+++ b/library/panedwindow.tcl
@@ -3,7 +3,7 @@
# This file defines the default bindings for Tk panedwindow widgets and
# provides procedures that help in implementing those bindings.
#
-# RCS: @(#) $Id: panedwindow.tcl,v 1.7 2003/07/19 01:24:02 hobbs Exp $
+# RCS: @(#) $Id: panedwindow.tcl,v 1.8 2003/07/28 21:31:06 patthoyts Exp $
#
bind Panedwindow <Button-1> { ::tk::panedwindow::MarkSash %W %x %y 1 }
@@ -35,6 +35,7 @@ namespace eval ::tk::panedwindow {}
# None
#
proc ::tk::panedwindow::MarkSash {w x y proxy} {
+ if {[$w cget -opaqueresize]} { set proxy 0 }
set what [$w identify $x $y]
if { [llength $what] == 2 } {
foreach {index which} $what break
@@ -61,6 +62,7 @@ proc ::tk::panedwindow::MarkSash {w x y proxy} {
# Moves sash
#
proc ::tk::panedwindow::DragSash {w x y proxy} {
+ if {[$w cget -opaqueresize]} { set proxy 0 }
if { [info exists ::tk::Priv(sash)] } {
if {$proxy} {
$w proxy place \
@@ -83,6 +85,7 @@ proc ::tk::panedwindow::DragSash {w x y proxy} {
# Returns ...
#
proc ::tk::panedwindow::ReleaseSash {w proxy} {
+ if {[$w cget -opaqueresize]} { set proxy 0 }
if { [info exists ::tk::Priv(sash)] } {
if {$proxy} {
foreach {x y} [$w proxy coord] break