summaryrefslogtreecommitdiffstats
path: root/generic/ttk/ttkEntry.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2020-03-11 13:03:30 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2020-03-11 13:03:30 (GMT)
commitf734823e12648903b16fe8b38bb9ee48454ad6a4 (patch)
tree610a619c6f3cba3910a5070cd03883f9bef99649 /generic/ttk/ttkEntry.c
parent4965fa07310bf1b153dcb200719fc1c4aaded61c (diff)
downloadtk-f734823e12648903b16fe8b38bb9ee48454ad6a4.zip
tk-f734823e12648903b16fe8b38bb9ee48454ad6a4.tar.gz
tk-f734823e12648903b16fe8b38bb9ee48454ad6a4.tar.bz2
Eliminate More C++-related warnings, when compiling against Tcl 9.0 headers.
Diffstat (limited to 'generic/ttk/ttkEntry.c')
-rw-r--r--generic/ttk/ttkEntry.c50
1 files changed, 25 insertions, 25 deletions
diff --git a/generic/ttk/ttkEntry.c b/generic/ttk/ttkEntry.c
index cb5435a..3f28445 100644
--- a/generic/ttk/ttkEntry.c
+++ b/generic/ttk/ttkEntry.c
@@ -156,53 +156,53 @@ typedef struct {
static const Tk_OptionSpec EntryOptionSpecs[] = {
{TK_OPTION_BOOLEAN, "-exportselection", "exportSelection",
- "ExportSelection", "1", -1, offsetof(Entry, entry.exportSelection),
+ "ExportSelection", "1", TCL_AUTO_LENGTH, offsetof(Entry, entry.exportSelection),
0,0,0 },
{TK_OPTION_FONT, "-font", "font", "Font",
- DEF_ENTRY_FONT, offsetof(Entry, entry.fontObj),-1,
+ DEF_ENTRY_FONT, offsetof(Entry, entry.fontObj),TCL_AUTO_LENGTH,
0,0,GEOMETRY_CHANGED},
{TK_OPTION_STRING, "-invalidcommand", "invalidCommand", "InvalidCommand",
- NULL, -1, offsetof(Entry, entry.invalidCmd),
+ NULL, TCL_AUTO_LENGTH, offsetof(Entry, entry.invalidCmd),
TK_OPTION_NULL_OK, 0, 0},
{TK_OPTION_JUSTIFY, "-justify", "justify", "Justify",
- "left", -1, offsetof(Entry, entry.justify),
+ "left", TCL_AUTO_LENGTH, offsetof(Entry, entry.justify),
0, 0, GEOMETRY_CHANGED},
{TK_OPTION_STRING, "-placeholder", "placeHolder", "PlaceHolder",
- NULL, offsetof(Entry, entry.placeholderObj), -1,
+ NULL, offsetof(Entry, entry.placeholderObj), TCL_AUTO_LENGTH,
TK_OPTION_NULL_OK, 0, 0},
{TK_OPTION_STRING, "-show", "show", "Show",
- NULL, -1, offsetof(Entry, entry.showChar),
+ NULL, TCL_AUTO_LENGTH, offsetof(Entry, entry.showChar),
TK_OPTION_NULL_OK, 0, 0},
{TK_OPTION_STRING, "-state", "state", "State",
- "normal", offsetof(Entry, entry.stateObj), -1,
+ "normal", offsetof(Entry, entry.stateObj), TCL_AUTO_LENGTH,
0,0,STATE_CHANGED},
{TK_OPTION_STRING, "-textvariable", "textVariable", "Variable",
- NULL, offsetof(Entry, entry.textVariableObj), -1,
+ NULL, offsetof(Entry, entry.textVariableObj), TCL_AUTO_LENGTH,
TK_OPTION_NULL_OK,0,TEXTVAR_CHANGED},
{TK_OPTION_STRING_TABLE, "-validate", "validate", "Validate",
- "none", -1, offsetof(Entry, entry.validate),
+ "none", TCL_AUTO_LENGTH, offsetof(Entry, entry.validate),
0, (ClientData) validateStrings, 0},
{TK_OPTION_STRING, "-validatecommand", "validateCommand", "ValidateCommand",
- NULL, -1, offsetof(Entry, entry.validateCmd),
+ NULL, TCL_AUTO_LENGTH, offsetof(Entry, entry.validateCmd),
TK_OPTION_NULL_OK, 0, 0},
{TK_OPTION_INT, "-width", "width", "Width",
- DEF_ENTRY_WIDTH, offsetof(Entry, entry.widthObj), -1,
+ DEF_ENTRY_WIDTH, offsetof(Entry, entry.widthObj), TCL_AUTO_LENGTH,
0,0,GEOMETRY_CHANGED},
{TK_OPTION_STRING, "-xscrollcommand", "xScrollCommand", "ScrollCommand",
- NULL, -1, offsetof(Entry, entry.xscroll.scrollCmd),
+ NULL, TCL_AUTO_LENGTH, offsetof(Entry, entry.xscroll.scrollCmd),
TK_OPTION_NULL_OK, 0, SCROLLCMD_CHANGED},
/* EntryStyleData options:
*/
{TK_OPTION_COLOR, "-background", "windowColor", "WindowColor",
- NULL, offsetof(Entry, entry.styleData.backgroundObj), -1,
+ NULL, offsetof(Entry, entry.styleData.backgroundObj), TCL_AUTO_LENGTH,
TK_OPTION_NULL_OK,0,0},
{TK_OPTION_COLOR, "-foreground", "textColor", "TextColor",
- NULL, offsetof(Entry, entry.styleData.foregroundObj), -1,
+ NULL, offsetof(Entry, entry.styleData.foregroundObj), TCL_AUTO_LENGTH,
TK_OPTION_NULL_OK,0,0},
{TK_OPTION_COLOR, "-placeholderforeground", "placeholderForeground",
"PlaceholderForeground", NULL,
- offsetof(Entry, entry.styleData.placeholderForegroundObj), -1,
+ offsetof(Entry, entry.styleData.placeholderForegroundObj), TCL_AUTO_LENGTH,
TK_OPTION_NULL_OK,0,0},
WIDGET_TAKEFOCUS_TRUE,
@@ -1777,13 +1777,13 @@ typedef struct {
static const Tk_OptionSpec ComboboxOptionSpecs[] = {
{TK_OPTION_STRING, "-height", "height", "Height",
- DEF_LIST_HEIGHT, offsetof(Combobox, combobox.heightObj), -1,
+ DEF_LIST_HEIGHT, offsetof(Combobox, combobox.heightObj), TCL_AUTO_LENGTH,
0,0,0 },
{TK_OPTION_STRING, "-postcommand", "postCommand", "PostCommand",
- "", offsetof(Combobox, combobox.postCommandObj), -1,
+ "", offsetof(Combobox, combobox.postCommandObj), TCL_AUTO_LENGTH,
0,0,0 },
{TK_OPTION_STRING, "-values", "values", "Values",
- "", offsetof(Combobox, combobox.valuesObj), -1,
+ "", offsetof(Combobox, combobox.valuesObj), TCL_AUTO_LENGTH,
0,0,0 },
WIDGET_INHERIT_OPTIONS(EntryOptionSpecs)
};
@@ -1968,27 +1968,27 @@ typedef struct {
static const Tk_OptionSpec SpinboxOptionSpecs[] = {
{TK_OPTION_STRING, "-values", "values", "Values",
- "", offsetof(Spinbox, spinbox.valuesObj), -1,
+ "", offsetof(Spinbox, spinbox.valuesObj), TCL_AUTO_LENGTH,
0,0,0 },
{TK_OPTION_DOUBLE, "-from", "from", "From",
- "0", offsetof(Spinbox,spinbox.fromObj), -1,
+ "0", offsetof(Spinbox,spinbox.fromObj), TCL_AUTO_LENGTH,
0,0,0 },
{TK_OPTION_DOUBLE, "-to", "to", "To",
- "0", offsetof(Spinbox,spinbox.toObj), -1,
+ "0", offsetof(Spinbox,spinbox.toObj), TCL_AUTO_LENGTH,
0,0,0 },
{TK_OPTION_DOUBLE, "-increment", "increment", "Increment",
- "1", offsetof(Spinbox,spinbox.incrementObj), -1,
+ "1", offsetof(Spinbox,spinbox.incrementObj), TCL_AUTO_LENGTH,
0,0,0 },
{TK_OPTION_STRING, "-format", "format", "Format",
- "", offsetof(Spinbox, spinbox.formatObj), -1,
+ "", offsetof(Spinbox, spinbox.formatObj), TCL_AUTO_LENGTH,
0,0,0 },
{TK_OPTION_STRING, "-command", "command", "Command",
- "", offsetof(Spinbox, spinbox.commandObj), -1,
+ "", offsetof(Spinbox, spinbox.commandObj), TCL_AUTO_LENGTH,
0,0,0 },
{TK_OPTION_BOOLEAN, "-wrap", "wrap", "Wrap",
- "0", offsetof(Spinbox,spinbox.wrapObj), -1,
+ "0", offsetof(Spinbox,spinbox.wrapObj), TCL_AUTO_LENGTH,
0,0,0 },
WIDGET_INHERIT_OPTIONS(EntryOptionSpecs)