docs: use |[ ]| instead of <programlisting></programlisting>

https://bugzilla.gnome.org/show_bug.cgi?id=723119
This commit is contained in:
William Jon McCann
2014-01-27 12:12:55 -05:00
parent a74ea0770d
commit 768bc44081
77 changed files with 328 additions and 358 deletions

View File

@ -1142,36 +1142,30 @@ struct _GdkEventDND {
* The event type is always the first field in all of the event types, and
* can always be accessed with the following code, no matter what type of
* event it is:
* <informalexample>
* <programlisting>
* |[
* GdkEvent *event;
* GdkEventType type;
*
* type = event->type;
* </programlisting>
* </informalexample>
* ]|
*
* To access other fields of the event, the pointer to the event
* can be cast to the appropriate event type, or the union member
* name can be used. For example if the event type is %GDK_BUTTON_PRESS
* then the x coordinate of the button press can be accessed with:
* <informalexample>
* <programlisting>
* |[
* GdkEvent *event;
* gdouble x;
*
* x = ((GdkEventButton*)event)->x;
* </programlisting>
* </informalexample>
* ]|
* or:
* <informalexample>
* <programlisting>
* |[
* GdkEvent *event;
* gdouble x;
*
* x = event->button.x;
* </programlisting>
* </informalexample>
* ]|
*/
union _GdkEvent
{