diff options
author | ericm <ericm@noemail.net> | 2000-10-05 00:49:58 (GMT) |
---|---|---|
committer | ericm <ericm@noemail.net> | 2000-10-05 00:49:58 (GMT) |
commit | 74f9b33f429aacada8723063196c4447884a3ef8 (patch) | |
tree | 71d71aa44934d02476d9b35d8b344960884591ea /doc/MaintGeom.3 | |
parent | 65700dcf2d3b57da4730864795c212cde0f26030 (diff) | |
download | tk-74f9b33f429aacada8723063196c4447884a3ef8.zip tk-74f9b33f429aacada8723063196c4447884a3ef8.tar.gz tk-74f9b33f429aacada8723063196c4447884a3ef8.tar.bz2 |
* doc/MaintGeom.3: Noted that Tk_MaintainGeometry handles direct
descendants properly.
* generic/tkGeometry.c (Tk_MaintainGeometry): Added a check for
the case in which the slave window is a direct descendant of the
master window. In this case, we need not set up the additional
infrastructure normally provide by Tk_MaintainGeometry, because we
can rely on the parent/child relationship to handle it for us
implicitly. In this case, Tk_MaintainGeometry just calls directly
to Tk_MoveResizeWindow. This allows geometry managers to simply
always use Tk_MaintainGeometry to maintain geometry for slaves,
and avoid doing the direct descendant check themselves.
(Tk_UnmaintainGeometry): Added a matching check for the direct
descendant case; in this case, Tk_UnmaintainGeometry simply
returns immediately.
FossilOrigin-Name: 99a395478ad8c98cbd7454fc209b61a2772f7516
Diffstat (limited to 'doc/MaintGeom.3')
-rw-r--r-- | doc/MaintGeom.3 | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/doc/MaintGeom.3 b/doc/MaintGeom.3 index b9f882d..4f59c0e 100644 --- a/doc/MaintGeom.3 +++ b/doc/MaintGeom.3 @@ -5,7 +5,7 @@ '\" See the file "license.terms" for information on usage and redistribution '\" of this file, and for a DISCLAIMER OF ALL WARRANTIES. '\" -'\" RCS: @(#) $Id: MaintGeom.3,v 1.2 1998/09/14 18:22:52 stanton Exp $ +'\" RCS: @(#) $Id: MaintGeom.3,v 1.3 2000/10/05 00:50:00 ericm Exp $ '\" .so man.macros .TH Tk_MaintainGeometry 3 4.0 Tk "Tk Library Procedures" @@ -64,7 +64,8 @@ is unmapped, the slave is automatically removed by the screen by X. .PP \fBTk_MaintainGeometry\fR deals with these problems for slaves -whose masters aren't their parents. +whose masters aren't their parents, as well as handling the simpler +case of slaves whose masters are their parents. \fBTk_MaintainGeometry\fR is typically called by a window manager once it has decided where a slave should be positioned relative to its master. |