summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorfvogel <fvogelnew1@free.fr>2020-09-20 10:35:25 (GMT)
committerfvogel <fvogelnew1@free.fr>2020-09-20 10:35:25 (GMT)
commite2934c6cbf4ab0b5aeea6802ce0112b94bd44ea8 (patch)
treeaefb136cc6a60c1826ea931b155edaa808e00024 /doc
parent6eeba7e3590fb31eab423103c0d478d199eb2ad1 (diff)
downloadtk-e2934c6cbf4ab0b5aeea6802ce0112b94bd44ea8.zip
tk-e2934c6cbf4ab0b5aeea6802ce0112b94bd44ea8.tar.gz
tk-e2934c6cbf4ab0b5aeea6802ce0112b94bd44ea8.tar.bz2
Remove dead code (Ttk_GetStyle creates the style if it doesn't already exist, thus never returns NULL), and improve documentation of ttk::style accordingly.
Diffstat (limited to 'doc')
-rw-r--r--doc/ttk_style.n3
1 files changed, 3 insertions, 0 deletions
diff --git a/doc/ttk_style.n b/doc/ttk_style.n
index 376ecb0..2cd4a66 100644
--- a/doc/ttk_style.n
+++ b/doc/ttk_style.n
@@ -33,6 +33,7 @@ The \fBttk::style\fR command takes the following arguments:
.TP
\fBttk::style configure \fIstyle\fR ?\fI\-option\fR ?\fIvalue option value...\fR? ?
Sets the default value of the specified option(s) in \fIstyle\fR.
+If \fIstyle\fR does not exist, it is created.
If only \fIstyle\fR and \fI-option\fR are specified, get the default value
for option \fI-option\fR of style \fIstyle\fR.
If only \fIstyle\fR is specified, get the default value for all options
@@ -72,12 +73,14 @@ state).
If the \fIdefault\fR argument is present, it is used as a fallback
value in case no specification for \fI\-option\fR is found.
.\" Otherwise -- signal error? return empty string? Leave unspecified for now.
+If \fIstyle\fR does not exist, it is created.
.TP
\fBttk::style map \fIstyle\fR ?\fI\-option\fB { \fIstatespec value...\fB }\fR?
Sets dynamic values of the specified option(s) in \fIstyle\fR.
Each \fIstatespec / value\fR pair is examined in order;
the value corresponding to the first matching \fIstatespec\fR
is used.
+If \fIstyle\fR does not exist, it is created.
.TP
\fBttk::style theme\fR \fIargs\fR
.RS