summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhobbs <hobbs>2004-05-03 19:36:20 (GMT)
committerhobbs <hobbs>2004-05-03 19:36:20 (GMT)
commitc0570464f7d7778b4ce093ae08a77e784f6385b7 (patch)
tree448d478a9db786a33ce10422d1e5618cf7542df4
parent656c3e9322cd07ef47c82de88d51080c09adab60 (diff)
downloadtk-c0570464f7d7778b4ce093ae08a77e784f6385b7.zip
tk-c0570464f7d7778b4ce093ae08a77e784f6385b7.tar.gz
tk-c0570464f7d7778b4ce093ae08a77e784f6385b7.tar.bz2
* library/panedwindow.tcl (MarkSash): call DragSash to stop sash
jump when B1 is pressed and released without moving. [Bug #932155]
-rw-r--r--ChangeLog3
-rw-r--r--library/panedwindow.tcl4
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 24830ab..2652e3e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
2004-05-03 Jeff Hobbs <jeffh@ActiveState.com>
+ * library/panedwindow.tcl (MarkSash): call DragSash to stop sash
+ jump when B1 is pressed and released without moving. [Bug #932155]
+
* tests/panedwindow.test: panedwindow-25.1
* generic/tkPanedWindow.c (Unlink): clean up -before/-after refs
to a slave when removing it. [Bug #928413] (griffin)
diff --git a/library/panedwindow.tcl b/library/panedwindow.tcl
index 7b7c25a..233a664 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.8 2003/07/28 21:31:06 patthoyts Exp $
+# RCS: @(#) $Id: panedwindow.tcl,v 1.9 2004/05/03 19:36:20 hobbs Exp $
#
bind Panedwindow <Button-1> { ::tk::panedwindow::MarkSash %W %x %y 1 }
@@ -45,6 +45,8 @@ proc ::tk::panedwindow::MarkSash {w x y proxy} {
foreach {sx sy} [$w sash coord $index] break
set ::tk::Priv(dx) [expr {$sx-$x}]
set ::tk::Priv(dy) [expr {$sy-$y}]
+ # Do this to init the proxy location
+ DragSash $w $x $y $proxy
}
}
}