summaryrefslogtreecommitdiff
path: root/specs/CH11.xml
diff options
context:
space:
mode:
Diffstat (limited to 'specs/CH11.xml')
-rw-r--r--specs/CH11.xml160
1 files changed, 80 insertions, 80 deletions
diff --git a/specs/CH11.xml b/specs/CH11.xml
index 509987b..0f863de 100644
--- a/specs/CH11.xml
+++ b/specs/CH11.xml
@@ -466,9 +466,9 @@ is a convenience macro that calls
<xref linkend='XtMalloc' xrefstyle='select: title'/>
with the following arguments specified:
</para>
-<literallayout>
-<code>((type *) XtMalloc((unsigned) sizeof(type)))</code>
-</literallayout>
+<programlisting>
+((type *) XtMalloc((unsigned) sizeof(type)))
+</programlisting>
<para>
The storage allocated by
<xref linkend='XtNew' xrefstyle='select: title'/>
@@ -513,9 +513,9 @@ is a convenience macro that calls
<xref linkend='XtMalloc' xrefstyle='select: title'/>
with the following arguments specified:
</para>
-<literallayout>
-<code>(strcpy(XtMalloc((unsigned)strlen(str) + 1), str))</code>
-</literallayout>
+<programlisting>
+(strcpy(XtMalloc((unsigned)strlen(str) + 1), str))
+</programlisting>
<para>
The storage allocated by
<xref linkend='XtNewString' xrefstyle='select: title'/>
@@ -1834,9 +1834,9 @@ The procedure pointer specified by the incremental owner to supply the
selection data to the Intrinsics is of type
<xref linkend='XtConvertSelectionIncrProc' xrefstyle='select: title'/>.
</para>
-<literallayout>
-<code>typedef XtPointer XtRequestId;</code>
-</literallayout>
+<programlisting>
+typedef XtPointer XtRequestId;
+</programlisting>
<funcsynopsis id='XtConvertSelectionIncrProc'>
<funcprototype>
@@ -4379,12 +4379,12 @@ A string substitution is defined by a list of
<function>Substitution</function>
entries.
</para>
-<literallayout>
-<code>typedef struct {</code>
-<code> char match;</code>
-<code> String substitution;</code>
-<code>} SubstitutionRec, *Substitution;</code>
-</literallayout>
+<programlisting>
+typedef struct {
+ char match;
+ String substitution;
+} SubstitutionRec, *Substitution;
+</programlisting>
<para>
File name evaluation is handled in an operating-system-dependent
fashion by an
@@ -4772,14 +4772,14 @@ must contain the following substitutions:
<!-- OK PAST HERE -->
-<literallayout>
-<code>1. %C, %N, %S, %T, %L or %C, %N, %S, %T, %l, %t, %c</code>
-<code>2. %C, %N, %S, %T, %l</code>
-<code>3. %C, %N, %S, %T</code>
-<code>4. %N, %S, %T, %L or %N, %S, %T, %l, %t, %c</code>
-<code>5. %N, %S, %T, %l</code>
-<code>6. %N, %S, %T</code>
-</literallayout>
+<programlisting>
+1. %C, %N, %S, %T, %L or %C, %N, %S, %T, %l, %t, %c
+2. %C, %N, %S, %T, %l
+3. %C, %N, %S, %T
+4. %N, %S, %T, %L or %N, %S, %T, %l, %t, %c
+5. %N, %S, %T, %l
+6. %N, %S, %T
+</programlisting>
<para>
The order of these six entries within the path must be as given above.
@@ -4804,11 +4804,11 @@ Possible values might include ".txt", ".dat", and ".bm".
<para>
A suggested value for the default path on POSIX-based systems is
</para>
-<literallayout>
-<code> /usr/lib/X11/%L/%T/%N%C%S:/usr/lib/X11/%l/%T/%N%C%S:\</code>
-<code> /usr/lib/X11/%T/%N%C%S:/usr/lib/X11/%L/%T/%N%S:\</code>
-<code> /usr/lib/X11/%l/%T/%N%S:/usr/lib/X11/%T/%N%S</code>
-</literallayout>
+<programlisting>
+ /usr/lib/X11/%L/%T/%N%C%S:/usr/lib/X11/%l/%T/%N%C%S:\
+ /usr/lib/X11/%T/%N%C%S:/usr/lib/X11/%L/%T/%N%S:\
+ /usr/lib/X11/%l/%T/%N%S:/usr/lib/X11/%T/%N%S
+</programlisting>
<para>
@@ -4831,9 +4831,9 @@ might set
<emphasis role='strong'>XFILESEARCHPATH</emphasis>
to
</para>
-<literallayout>
-<code> %D:ourdir/%T/%N%C:ourdir/%T/%N</code>
-</literallayout>
+<programlisting>
+ %D:ourdir/%T/%N%C:ourdir/%T/%N
+</programlisting>
<para>
The customization string is obtained by querying the resource database
@@ -5042,14 +5042,14 @@ The <emphasis remap='I'>call_data</emphasis> parameter in a createHook callback
cast to type
<function>XtCreateHookData</function>.
</para>
-<literallayout>
-<code>typedef struct {</code>
-<code> String type;</code>
-<code> Widget widget;</code>
-<code> ArgList args;</code>
-<code> Cardinal num_args;</code>
-<code>} XtCreateHookDataRec, *XtCreateHookData;</code>
-</literallayout>
+<programlisting>
+typedef struct {
+ String type;
+ Widget widget;
+ ArgList args;
+ Cardinal num_args;
+} XtCreateHookDataRec, *XtCreateHookData;
+</programlisting>
<para>
The <emphasis remap='I'>type</emphasis> is set to
<function>XtHcreate</function>,
@@ -5125,14 +5125,14 @@ The <emphasis remap='I'>call_data</emphasis> parameter in a changeHook callback
be cast to type
<function>XtChangeHookData</function>.
</para>
-<literallayout>
-<code>typedef struct {</code>
-<code> String type;</code>
-<code> Widget widget;</code>
-<code> XtPointer event_data;</code>
-<code> Cardinal num_event_data;</code>
-<code>} XtChangeHookDataRec, *XtChangeHookData;</code>
-</literallayout>
+<programlisting>
+typedef struct {
+ String type;
+ Widget widget;
+ XtPointer event_data;
+ Cardinal num_event_data;
+} XtChangeHookDataRec, *XtChangeHookData;
+</programlisting>
<para>
When the changeHook callbacks are called as a result of a call to
<xref linkend='XtSetValues' xrefstyle='select: title'/>
@@ -5144,13 +5144,13 @@ or
<emphasis remap='I'>event_data</emphasis> may be cast to type
<function>XtChangeHookSetValuesData</function>.
</para>
-<literallayout>
-<code>typedef struct {</code>
-<code> Widget old, req;</code>
-<code> ArgList args;</code>
-<code> Cardinal num_args;</code>
-<code>} XtChangeHookSetValuesDataRec, *XtChangeHookSetValuesData;</code>
-</literallayout>
+<programlisting>
+typedef struct {
+ Widget old, req;
+ ArgList args;
+ Cardinal num_args;
+} XtChangeHookSetValuesDataRec, *XtChangeHookSetValuesData;
+</programlisting>
<para>
The <emphasis remap='I'>old</emphasis>, <emphasis remap='I'>req</emphasis>, <emphasis remap='I'>args</emphasis>, and <emphasis remap='I'>num_args</emphasis> are the
parameters passed to the set_values procedure. The callbacks are called
@@ -5388,9 +5388,9 @@ without employing the Intrinsics library should invoke the change hook
itself. This is done by:
</para>
-<literallayout>
-<code> XtCallCallbacks(XtHooksOfDisplay(dpy), XtNchangeHook, call_data);</code>
-</literallayout>
+<programlisting>
+ XtCallCallbacks(XtHooksOfDisplay(dpy), XtNchangeHook, call_data);
+</programlisting>
<para>
The XtNconfigureHook callback list is called any time the Intrinsics
move, resize, or configure a widget and when
@@ -5402,14 +5402,14 @@ is called.
The <emphasis remap='I'>call_data</emphasis> parameter may be cast to type
<function>XtConfigureHookData.</function>
</para>
-<literallayout>
-<code>typedef struct {</code>
-<code> String type;</code>
-<code> Widget widget;</code>
-<code> XtGeometryMask changeMask;</code>
-<code> XWindowChanges changes;</code>
-<code>} XtConfigureHookDataRec, *XtConfigureHookData;</code>
-</literallayout>
+<programlisting>
+typedef struct {
+ String type;
+ Widget widget;
+ XtGeometryMask changeMask;
+ XWindowChanges changes;
+} XtConfigureHookDataRec, *XtConfigureHookData;
+</programlisting>
<para>
When the configureHook callbacks are called, the <emphasis remap='I'>type</emphasis> is
<function>XtHconfigure</function>,
@@ -5431,15 +5431,15 @@ The <emphasis remap='I'>call_data</emphasis> parameter may be cast to type
<function>XtGeometryHookData</function>.
</para>
-<literallayout>
-<code>typedef struct {</code>
-<code> String type;</code>
-<code> Widget widget;</code>
-<code> XtWidgetGeometry* request;</code>
-<code> XtWidgetGeometry* reply;</code>
-<code> XtGeometryResult result;</code>
-<code>} XtGeometryHookDataRec, *XtGeometryHookData;</code>
-</literallayout>
+<programlisting>
+typedef struct {
+ String type;
+ Widget widget;
+ XtWidgetGeometry* request;
+ XtWidgetGeometry* reply;
+ XtGeometryResult result;
+} XtGeometryHookDataRec, *XtGeometryHookData;
+</programlisting>
<para>
When the geometryHook callbacks are called prior to geometry negotiation,
the <emphasis remap='I'>type</emphasis> is
@@ -5459,12 +5459,12 @@ The XtNdestroyHook callback list is called when a widget is destroyed.
The <emphasis remap='I'>call_data parameter</emphasis> may be cast to type
<function>XtDestroyHookData</function>.
</para>
-<literallayout>
-<code>typedef struct {</code>
-<code> String type;</code>
-<code> Widget widget;</code>
-<code>} XtDestroyHookDataRec, *XtDestroyHookData;</code>
-</literallayout>
+<programlisting>
+typedef struct {
+ String type;
+ Widget widget;
+} XtDestroyHookDataRec, *XtDestroyHookData;
+</programlisting>
<para>
When the destroyHook callbacks are called as a result of a call to
<xref linkend='XtDestroyWidget' xrefstyle='select: title'/>,