Skip to content

Commit

Permalink
Document user1-user6, and make them usable in scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
jan.nijtmans committed May 17, 2024
2 parents f998d21 + d5c84fc commit 208a1d6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions doc/ttk_widget.n
Original file line number Diff line number Diff line change
Expand Up @@ -387,6 +387,8 @@ it is used in some themes for widgets that
provide distinct visual feedback for
the active widget in addition to the active element
within the widget.
.IP \fBuser1\fR-\fBuser6\fR
Freely usable for other purposes
.PP
A \fIstate specification\fR or \fIstateSpec\fR is a list
of state names, optionally prefixed with an exclamation point (!)
Expand Down
6 changes: 3 additions & 3 deletions generic/ttk/ttkState.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ static const char *const stateNames[] =
"invalid", /* Bad value */
"readonly", /* Editing/modification disabled */
"hover", /* Mouse cursor is over widget */
"reserved1", /* Reserved for future extension */
"reserved2", /* Reserved for future extension */
"reserved3", /* Reserved for future extension */
"user6", /* User-definable state */
"user5", /* User-definable state */
"user4", /* User-definable state */
"user3", /* User-definable state */
"user2", /* User-definable state */
"user1", /* User-definable state */
Expand Down

0 comments on commit 208a1d6

Please sign in to comment.