summaryrefslogtreecommitdiffstats
path: root/doc/AddOption.3
diff options
context:
space:
mode:
Diffstat (limited to 'doc/AddOption.3')
-rw-r--r--doc/AddOption.311
1 files changed, 10 insertions, 1 deletions
diff --git a/doc/AddOption.3 b/doc/AddOption.3
index c1c116a..a331455 100644
--- a/doc/AddOption.3
+++ b/doc/AddOption.3
@@ -13,6 +13,9 @@ Tk_AddOption \- Add an option to the option database
.sp
void
\fBTk_AddOption\fR(\fItkwin, name, value, priority\fR)
+.sp
+void
+\fBTk_GetSystemDefault\fR(\fItkwin, dbName, className\fR)
.SH ARGUMENTS
.AP Tk_Window tkwin in
Token for window.
@@ -20,12 +23,16 @@ Token for window.
Multi-element name of option.
.AP "const char" *value in
Value of option.
+.AP "const char" *dbName in
+The option database name.
+.AP "const char" *className in
+The name of the option class.
.AP int priority in
Overall priority level to use for option.
.BE
.SH DESCRIPTION
.PP
-This procedure is invoked to add an option to the database
+\fBTk_AddOption\fR is invoked to add an option to the database
associated with \fItkwin\fR's main window. \fIName\fR
contains the option being specified and consists of names and/or
classes separated by asterisks or dots, in the usual X format.
@@ -46,5 +53,7 @@ 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.
+Returns NULL if there are no system defaults that match this pair.
.SH KEYWORDS
class, name, option, add