summaryrefslogtreecommitdiffstats
path: root/doc/image.n
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2000-11-23 13:50:10 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2000-11-23 13:50:10 (GMT)
commit30949cbba8e868da7e1fa1e4200be6385bd07797 (patch)
treec925f625f3b1f913bfea06c7acffe3d7b8521474 /doc/image.n
parente8a9f7a1eb829433dc7432244df8f5d1d7798d13 (diff)
downloadtk-30949cbba8e868da7e1fa1e4200be6385bd07797.zip
tk-30949cbba8e868da7e1fa1e4200be6385bd07797.tar.gz
tk-30949cbba8e868da7e1fa1e4200be6385bd07797.tar.bz2
Fixed bug #120819 by prohibiting images from starting with a period;
I'm still not quite sure what exactly was going wrong in the bug, but I suspect the problem might have actually been due to the deletion of all images while in the midst of creating an image. The restriction is pretty light when it comes to existing code, since it previously caused a core dump due to an image typePtr field being set to random garbage, an indication of over-eager use of free()...
Diffstat (limited to 'doc/image.n')
-rw-r--r--doc/image.n11
1 files changed, 7 insertions, 4 deletions
diff --git a/doc/image.n b/doc/image.n
index 4277ef4..dcd5034 100644
--- a/doc/image.n
+++ b/doc/image.n
@@ -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: image.n,v 1.3 2000/05/15 18:21:47 ericm Exp $
+'\" RCS: @(#) $Id: image.n,v 1.4 2000/11/23 13:50:10 dkf Exp $
'\"
.so man.macros
.TH image n 4.0 Tk "Tk Built-In Commands"
@@ -27,9 +27,12 @@ It can take several different forms, depending on the
Creates a new image and returns its name.
\fItype\fR specifies the type of the image, which must be one of
the types currently defined (e.g., \fBbitmap\fR).
-\fIname\fR specifies the name for the image; if it is omitted then
-Tk picks a name of the form \fBimage\fIx\fR, where \fIx\fR is
-an integer.
+\fIname\fR specifies the name for the image
+.VS 8.4
+(which may not start with a period "." character);
+.VE 8.4
+if it is omitted then Tk picks a name of the form \fBimage\fIx\fR,
+where \fIx\fR is an integer.
There may be any number of \fIoption\fR\-\fIvalue\fR pairs,
which provide configuration options for the new image.
The legal set of options is defined separately for each image