summaryrefslogtreecommitdiffstats
path: root/generic/tkListbox.c
diff options
context:
space:
mode:
authorhobbs <hobbs>1999-11-23 23:52:13 (GMT)
committerhobbs <hobbs>1999-11-23 23:52:13 (GMT)
commitb6cf1cf2288ef3a39ed7ff39ec16deb96f206f9a (patch)
treeadac85e2547fa56320d1aaeabbc15111a4e44bc5 /generic/tkListbox.c
parent44dd355669ae99d29a496731968b72e76305ee2c (diff)
downloadtk-b6cf1cf2288ef3a39ed7ff39ec16deb96f206f9a.zip
tk-b6cf1cf2288ef3a39ed7ff39ec16deb96f206f9a.tar.gz
tk-b6cf1cf2288ef3a39ed7ff39ec16deb96f206f9a.tar.bz2
* generic/tk.h:
* generic/tkConfig.c: added support for TK_OPTION_DONT_SET_DEFAULT as equiv for TK_CONFIG_DONT_SET_DEFAULT * generic/tkListbox.c: added TK_OPTION_DONT_SET_DEFAULT to the item specs
Diffstat (limited to 'generic/tkListbox.c')
-rw-r--r--generic/tkListbox.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/generic/tkListbox.c b/generic/tkListbox.c
index 4b56229..6f4f1ec 100644
--- a/generic/tkListbox.c
+++ b/generic/tkListbox.c
@@ -11,7 +11,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tkListbox.c,v 1.10 1999/11/19 15:48:19 ericm Exp $
+ * RCS: @(#) $Id: tkListbox.c,v 1.11 1999/11/23 23:52:13 hobbs Exp $
*/
#include "tkPort.h"
@@ -270,20 +270,23 @@ static Tk_OptionSpec optionSpecs[] = {
static Tk_OptionSpec itemAttrOptionSpecs[] = {
{TK_OPTION_BORDER, "-background", "background", "Background",
(char *)NULL, -1, Tk_Offset(ItemAttr, border),
- TK_OPTION_NULL_OK, (ClientData) DEF_LISTBOX_BG_MONO, 0},
+ TK_OPTION_NULL_OK|TK_OPTION_DONT_SET_DEFAULT,
+ (ClientData) DEF_LISTBOX_BG_MONO, 0},
{TK_OPTION_SYNONYM, "-bg", (char *) NULL, (char *) NULL,
(char *) NULL, 0, -1, 0, (ClientData) "-background", 0},
{TK_OPTION_SYNONYM, "-fg", "foreground", (char *) NULL,
(char *) NULL, 0, -1, 0, (ClientData) "-foreground", 0},
{TK_OPTION_COLOR, "-foreground", "foreground", "Foreground",
(char *) NULL, -1, Tk_Offset(ItemAttr, fgColor),
- TK_OPTION_NULL_OK, 0, 0},
+ TK_OPTION_NULL_OK|TK_OPTION_DONT_SET_DEFAULT, 0, 0},
{TK_OPTION_BORDER, "-selectbackground", "selectBackground", "Background",
(char *) NULL, -1, Tk_Offset(ItemAttr, selBorder),
- TK_OPTION_NULL_OK, (ClientData) DEF_LISTBOX_SELECT_MONO, 0},
+ TK_OPTION_NULL_OK|TK_OPTION_DONT_SET_DEFAULT,
+ (ClientData) DEF_LISTBOX_SELECT_MONO, 0},
{TK_OPTION_COLOR, "-selectforeground", "selectForeground", "Foreground",
(char *) NULL, -1, Tk_Offset(ItemAttr, selFgColor),
- TK_OPTION_NULL_OK, (ClientData) DEF_LISTBOX_SELECT_FG_MONO, 0},
+ TK_OPTION_NULL_OK|TK_OPTION_DONT_SET_DEFAULT,
+ (ClientData) DEF_LISTBOX_SELECT_FG_MONO, 0},
{TK_OPTION_END, (char *) NULL, (char *) NULL, (char *) NULL,
(char *) NULL, 0, -1, 0, 0, 0}
};