From 9bf3724d25ab58036d844fa33771a66dc5f37572 Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Sun, 27 Jun 2021 15:25:18 +0100 Subject: [PATCH] docs: Use code blocks for inline XML Otherwise the markdown renderer will just ignore them. Fixes: #4076 --- gtk/gtkdialog.c | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/gtk/gtkdialog.c b/gtk/gtkdialog.c index 7c88f12113..5d88756424 100644 --- a/gtk/gtkdialog.c +++ b/gtk/gtkdialog.c @@ -95,6 +95,7 @@ * if you had more than a simple message in the dialog. * * An example for simple `GtkDialog` usage: + * * ```c * // Function to open a dialog box with a message * void @@ -133,20 +134,21 @@ * The `GtkDialog` implementation of the `GtkBuildable` interface exposes the * @content_area as an internal child with the name “content_area”. * - * `GtkDialog` supports a custom element, which can contain - * multiple elements. The “response” attribute specifies a + * `GtkDialog` supports a custom `` element, which can contain + * multiple `` elements. The “response” attribute specifies a * numeric response, and the content of the element is the id of widget * (which should be a child of the dialogs @action_area). To mark a response - * as default, set the “default“ attribute of the element + * as default, set the “default” attribute of the `` element * to true. * - * `GtkDialog` supports adding action widgets by specifying “action“ as - * the “type“ attribute of a element. The widget will be added + * `GtkDialog` supports adding action widgets by specifying “action” as + * the “type” attribute of a `` element. The widget will be added * either to the action area or the headerbar of the dialog, depending - * on the “use-header-bar“ property. The response id has to be associated - * with the action widget using the element. + * on the “use-header-bar” property. The response id has to be associated + * with the action widget using the `` element. * * An example of a `GtkDialog` UI definition fragment: + * * ```xml * *