diff options
author | Thomas E. Dickey <dickey@invisible-island.net> | 2019-04-14 18:45:06 -0400 |
---|---|---|
committer | Thomas E. Dickey <dickey@invisible-island.net> | 2019-04-16 18:47:10 -0400 |
commit | aab9b50bb755d741ee54203f91bdfc464a95642f (patch) | |
tree | 1ea045c043e39dbccd3e6cf0a7fc0e6b4cad5696 /specs/CH05.xml | |
parent | aa871eb5c087f3af40e49e77378a04fa872c7465 (diff) |
use programlisting tag rather than workaround for literallayout font.
Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
Diffstat (limited to 'specs/CH05.xml')
-rw-r--r-- | specs/CH05.xml | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/specs/CH05.xml b/specs/CH05.xml index b3e04ac..97974bd 100644 --- a/specs/CH05.xml +++ b/specs/CH05.xml @@ -394,9 +394,9 @@ Some of these routines take an argument of type <function>XtGrabKind</function>, which is defined as </para> -<literallayout> -<code>typedef enum {XtGrabNone, XtGrabNonexclusive, XtGrabExclusive} XtGrabKind;</code> -</literallayout> +<programlisting> +typedef enum {XtGrabNone, XtGrabNonexclusive, XtGrabExclusive} XtGrabKind; +</programlisting> <para> The create_popup_child_proc procedure pointer @@ -512,9 +512,9 @@ or <function>XtGrabExclusive</function>, it calls </para> -<literallayout> -<code>XtAddGrab(</code><emphasis remap='I'>popup_shell</emphasis><code>, (</code><emphasis remap='I'>grab_kind</emphasis><code> == XtGrabExclusive), False)</code> -</literallayout> +<programlisting> +XtAddGrab(<emphasis remap='I'>popup_shell</emphasis>, (<emphasis remap='I'>grab_kind</emphasis> == XtGrabExclusive), False) +</programlisting> </listitem> <listitem> <para> @@ -988,12 +988,12 @@ The function casts the <emphasis remap='I'>client_data</emphasis> parameter to a pointer of type <function>XtPopdownID</function>. </para> -<literallayout> -<code>typedef struct {</code> -<code> Widget shell_widget;</code> -<code> Widget enable_widget;</code> -<code>} XtPopdownIDRec, *XtPopdownID;</code> -</literallayout> +<programlisting> +typedef struct { + Widget shell_widget; + Widget enable_widget; +} XtPopdownIDRec, *XtPopdownID; +</programlisting> <para> The <emphasis remap='I'>shell_widget</emphasis> is the pop-up shell to pop down, and the <emphasis remap='I'>enable_widget</emphasis> is usually the widget that was used to pop it up |