diff options
author | hobbs <hobbs> | 2005-02-12 00:48:31 (GMT) |
---|---|---|
committer | hobbs <hobbs> | 2005-02-12 00:48:31 (GMT) |
commit | 3bb0dcee28623c70075a31dd7a61d467d665e483 (patch) | |
tree | 8fd4e88a810df48e582bce5e3b0d18a4506cf387 | |
parent | 7ac25d068d3868c60ac70096041210bfe92b305b (diff) | |
download | tk-3bb0dcee28623c70075a31dd7a61d467d665e483.zip tk-3bb0dcee28623c70075a31dd7a61d467d665e483.tar.gz tk-3bb0dcee28623c70075a31dd7a61d467d665e483.tar.bz2 |
* library/panedwindow.tcl (::tk::panedwindow::Cursor): check
window existence on delayed call. [Bug 949792]
-rw-r--r-- | ChangeLog | 3 | ||||
-rw-r--r-- | library/panedwindow.tcl | 5 |
2 files changed, 6 insertions, 2 deletions
@@ -1,5 +1,8 @@ 2005-02-11 Jeff Hobbs <jeffh@ActiveState.com> + * library/panedwindow.tcl (::tk::panedwindow::Cursor): check + window existence on delayed call. [Bug 949792] + * doc/text.n: note 'image' key in 'dump' command. [Bug 1115907] * win/tkWinWm.c (TkWinGetIcon): fix toplevel retrieval for diff --git a/library/panedwindow.tcl b/library/panedwindow.tcl index 233a664..e09dd7a 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.9 2004/05/03 19:36:20 hobbs Exp $ +# RCS: @(#) $Id: panedwindow.tcl,v 1.10 2005/02/12 00:48:33 hobbs Exp $ # bind Panedwindow <Button-1> { ::tk::panedwindow::MarkSash %W %x %y 1 } @@ -155,7 +155,8 @@ proc ::tk::panedwindow::Motion {w x y} { # proc ::tk::panedwindow::Cursor {w} { variable ::tk::Priv - if {[info exists Priv($w,panecursor)]} { + # Make sure to check window existence in case it is destroyed. + if {[info exists Priv($w,panecursor)] && [winfo exists $w]} { if {[winfo containing [winfo pointerx $w] [winfo pointery $w]] eq $w} { set Priv($w,pwAfterId) [after 150 \ [list ::tk::panedwindow::Cursor $w]] |