summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfvogel <fvogelnew1@free.fr>2023-07-01 16:19:05 (GMT)
committerfvogel <fvogelnew1@free.fr>2023-07-01 16:19:05 (GMT)
commitc745902c52c6edf1e3d7705dd06c4c3b43d42ac2 (patch)
tree8372a07af4ec7f07d295ac7be1c710cd21f52fe2
parentb68962bb72f123b7fd6128fd11cddcd6e3589839 (diff)
parent4bfa34abecbb264addf37af4d75caec8f4913163 (diff)
downloadtk-c745902c52c6edf1e3d7705dd06c4c3b43d42ac2.zip
tk-c745902c52c6edf1e3d7705dd06c4c3b43d42ac2.tar.gz
tk-c745902c52c6edf1e3d7705dd06c4c3b43d42ac2.tar.bz2
Fix documentation of Tk_GetSystemDefault(). Error in the man page was introduced in [20e9d21a], the comments in the source code were incorrect.
-rw-r--r--doc/AddOption.36
-rw-r--r--macosx/tkMacOSXConfig.c2
-rw-r--r--unix/tkUnixConfig.c2
-rw-r--r--win/tkWinConfig.c2
4 files changed, 7 insertions, 5 deletions
diff --git a/doc/AddOption.3 b/doc/AddOption.3
index a331455..ee6a8ee 100644
--- a/doc/AddOption.3
+++ b/doc/AddOption.3
@@ -14,7 +14,7 @@ Tk_AddOption \- Add an option to the option database
void
\fBTk_AddOption\fR(\fItkwin, name, value, priority\fR)
.sp
-void
+Tcl_Obj *
\fBTk_GetSystemDefault\fR(\fItkwin, dbName, className\fR)
.SH ARGUMENTS
.AP Tk_Window tkwin in
@@ -53,7 +53,9 @@ user-specific startup files.
.IP 80
Used for options specified interactively after the application starts
running.
-\fBTk_GetSystemDefault\fR return a Tk_Uid string representation of the given \fIdbname\fR and \fIclassName\fR of a configuration option.
+.PP
+\fBTk_GetSystemDefault\fR returns a Tcl_Obj* with the string identifying
+a configuration option matching the given \fIdbname\fR and \fIclassName\fR.
Returns NULL if there are no system defaults that match this pair.
.SH KEYWORDS
class, name, option, add
diff --git a/macosx/tkMacOSXConfig.c b/macosx/tkMacOSXConfig.c
index cf90577..a85c6a9 100644
--- a/macosx/tkMacOSXConfig.c
+++ b/macosx/tkMacOSXConfig.c
@@ -23,7 +23,7 @@
* return a string representation of the option.
*
* Results:
- * Returns a Tk_Uid that is the string identifier that identifies
+ * Returns a Tcl_Obj* with the string identifier that identifies
* this option. Returns NULL if there are no system defaults
* that match this pair.
*
diff --git a/unix/tkUnixConfig.c b/unix/tkUnixConfig.c
index 3a5aed1..055c004 100644
--- a/unix/tkUnixConfig.c
+++ b/unix/tkUnixConfig.c
@@ -22,7 +22,7 @@
* string representation of the option.
*
* Results:
- * Returns a Tk_Uid that is the string identifier that identifies this
+ * Returns a Tcl_Obj* with the string identifier that identifies this
* option. Returns NULL if there are no system defaults that match this
* pair.
*
diff --git a/win/tkWinConfig.c b/win/tkWinConfig.c
index ab0bb5f..e2f8ac1 100644
--- a/win/tkWinConfig.c
+++ b/win/tkWinConfig.c
@@ -22,7 +22,7 @@
* string representation of the option.
*
* Results:
- * Returns a Tk_Uid that is the string identifier that identifies this
+ * Returns a Tcl_Obj* with the string identifier that identifies this
* option. Returns NULL if there are no system defaults that match this
* pair.
*