* [patch] possible panedwindow problem
@ 2002-07-03 13:34 Martin M. Hunt
0 siblings, 0 replies; only message in thread
From: Martin M. Hunt @ 2002-07-03 13:34 UTC (permalink / raw)
To: insight
[-- Attachment #1: Type: text/plain, Size: 387 bytes --]
We had a report of an initialization problem in the panedwindow that we could
not reproduce. However, just to be sure there was no race condition, I have
checked in this patch.
--
Martin Hunt
GDB Engineer
Red Hat, Inc.
2002-07-03 Martin M. Hunt <hunt@redhat.com>
* library/panedwindow.tcl (_placePlanes): Make certain things
are initialized before attempting to move panes.
[-- Attachment #2: p --]
[-- Type: text/x-diff, Size: 713 bytes --]
Index: libgui/library/panedwindow.tcl
===================================================================
RCS file: /cvs/src/src/libgui/library/panedwindow.tcl,v
retrieving revision 1.3
diff -u -u -r1.3 panedwindow.tcl
--- libgui/library/panedwindow.tcl 8 Sep 2001 22:34:46 -0000 1.3
+++ libgui/library/panedwindow.tcl 3 Jul 2002 20:32:18 -0000
@@ -830,6 +830,11 @@
# ------------------------------------------------------------------
body cyg::PanedWindow::_placePanes {{start 0} {end end} {forget 0}} {
#puts "placeplanes $start $end"
+
+ if {!$_initialized} {
+ return
+ }
+
if {$end=="end"} { set end [expr [llength $_activePanes] - 1] }
set _updatePanes [lrange $_activePanes $start $end]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2002-07-03 20:34 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-07-03 13:34 [patch] possible panedwindow problem Martin M. Hunt
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).