diff options
author | hobbs <hobbs> | 2003-04-26 02:59:19 (GMT) |
---|---|---|
committer | hobbs <hobbs> | 2003-04-26 02:59:19 (GMT) |
commit | 8fe2867a148cb06c060d7c663b90eb79a41895bf (patch) | |
tree | 566771aaa15411ffcc5ed06c7d1055c573128211 /generic/tkButton.h | |
parent | 056ce9c5bfeb97685012ee0992ac0b5e3f0c59f2 (diff) | |
download | tk-8fe2867a148cb06c060d7c663b90eb79a41895bf.zip tk-8fe2867a148cb06c060d7c663b90eb79a41895bf.tar.gz tk-8fe2867a148cb06c060d7c663b90eb79a41895bf.tar.bz2 |
* generic/tkButton.h: Rewrote the handling
* generic/tkButton.c (TkButtonWorldChanged): of compound *buttons
* mac/tkMacButton.c (TkpDisplayButton): to correctly display
* macosx/tkMacOSXButton.c (TkpDisplayButton): mixture of disabledfg,
* unix/tkUnixButton.c (TkpDisplayButton): selectcolor, indicator,
* win/tkWinButton.c (TkpDisplayButton): etc. *buttons will
now only stipple the image, unless no disabledfg is given, in which
case it will stipple the whole button.
Diffstat (limited to 'generic/tkButton.h')
-rw-r--r-- | generic/tkButton.h | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/generic/tkButton.h b/generic/tkButton.h index be195c6..d3f7cfa 100644 --- a/generic/tkButton.h +++ b/generic/tkButton.h @@ -9,7 +9,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tkButton.h,v 1.9 2002/06/17 10:54:29 drh Exp $ + * RCS: @(#) $Id: tkButton.h,v 1.10 2003/04/26 02:59:20 hobbs Exp $ */ #ifndef _TKBUTTON @@ -159,12 +159,10 @@ typedef struct { * screen. */ GC activeTextGC; /* GC for drawing text in active mode (NULL * means use normalTextGC). */ - GC disabledGC; /* Used to produce disabled effect. If - * disabledFg isn't NULL, this GC is used to - * draw button text or icon. Otherwise - * text or icon is drawn with normalGC and - * this GC is used to stipple background - * across it. For labels this is None. */ + GC disabledGC; /* Used to produce disabled effect for text + * and check/radio marks. */ + GC stippleGC; /* Used to produce disabled stipple effect + * for images when disabled. */ Pixmap gray; /* Pixmap for displaying disabled text if * disabledFg is NULL. */ GC copyGC; /* Used for copying information from an |