summaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2024-01-30 21:39:02 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2024-01-30 21:39:02 (GMT)
commit2ece7fc679e05923e7cff58751cf69302a8cc82d (patch)
tree47dbd9aa99b8456ae3a5cf9362b83aca00a17b5c /generic
parent0f87792101feffd4d3539b677e60c5df860de6a4 (diff)
downloadtk-2ece7fc679e05923e7cff58751cf69302a8cc82d.zip
tk-2ece7fc679e05923e7cff58751cf69302a8cc82d.tar.gz
tk-2ece7fc679e05923e7cff58751cf69302a8cc82d.tar.bz2
Few TK_OPTION_ENUM_VAR fixes
Diffstat (limited to 'generic')
-rw-r--r--generic/tkButton.c4
-rw-r--r--generic/ttk/ttkEntry.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/generic/tkButton.c b/generic/tkButton.c
index 5a6902d..c5360fa 100644
--- a/generic/tkButton.c
+++ b/generic/tkButton.c
@@ -303,9 +303,9 @@ static const Tk_OptionSpec checkbuttonOptionSpecs[] = {
DEF_BUTTON_IMAGE, offsetof(TkButton, imagePtr), TCL_INDEX_NONE,
TK_OPTION_NULL_OK, 0, 0},
{TK_OPTION_BOOLEAN, "-indicatoron", "indicatorOn", "IndicatorOn",
- DEF_BUTTON_INDICATOR, TCL_INDEX_NONE, offsetof(TkButton, indicatorOn), TK_OPTION_ENUM_VAR, 0, 0},
+ DEF_BUTTON_INDICATOR, TCL_INDEX_NONE, offsetof(TkButton, indicatorOn), 0, 0, 0},
{TK_OPTION_JUSTIFY, "-justify", "justify", "Justify",
- DEF_BUTTON_JUSTIFY, TCL_INDEX_NONE, offsetof(TkButton, justify), 0, 0, 0},
+ DEF_BUTTON_JUSTIFY, TCL_INDEX_NONE, offsetof(TkButton, justify), TK_OPTION_ENUM_VAR, 0, 0},
{TK_OPTION_RELIEF, "-offrelief", "offRelief", "OffRelief",
DEF_BUTTON_RELIEF, TCL_INDEX_NONE, offsetof(TkButton, offRelief), 0, 0, 0},
{TK_OPTION_STRING, "-offvalue", "offValue", "Value",
diff --git a/generic/ttk/ttkEntry.c b/generic/ttk/ttkEntry.c
index 8f26432..756e41c 100644
--- a/generic/ttk/ttkEntry.c
+++ b/generic/ttk/ttkEntry.c
@@ -170,7 +170,7 @@ static const Tk_OptionSpec EntryOptionSpecs[] = {
TK_OPTION_NULL_OK, 0, 0},
{TK_OPTION_JUSTIFY, "-justify", "justify", "Justify",
"left", TCL_INDEX_NONE, offsetof(Entry, entry.justify),
- 0, 0, GEOMETRY_CHANGED},
+ TK_OPTION_ENUM_VAR, 0, GEOMETRY_CHANGED},
{TK_OPTION_STRING, "-placeholder", "placeHolder", "PlaceHolder",
NULL, offsetof(Entry, entry.placeholderObj), TCL_INDEX_NONE,
TK_OPTION_NULL_OK, 0, 0},