[gtk/4.0-backports: 24/53] docs: Annotate XML fragments as such




commit a2253ff7d524ba51bea17671c2837e34e340a457
Author: Emmanuele Bassi <ebassi gnome org>
Date:   Thu Jan 28 15:42:22 2021 +0000

    docs: Annotate XML fragments as such
    
    This way we can get syntax highlighting.

 gtk/gtkwidget.c | 11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)
---
diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c
index 4f597197c9..2fd25d71d2 100644
--- a/gtk/gtkwidget.c
+++ b/gtk/gtkwidget.c
@@ -256,7 +256,7 @@
  * If the parent widget uses a #GtkLayoutManager, #GtkWidget supports a
  * custom `<layout>` element, used to define layout properties:
  *
- * |[
+ * |[<!-- language="xml" -->
  * <object class="MyGrid" id="grid1">
  *   <child>
  *     <object class="GtkLabel" id="label1">
@@ -284,7 +284,8 @@
  *
  * GtkWidget allows style information such as style classes to
  * be associated with widgets, using the custom `<style>` element:
- * |[
+ *
+ * |[<!-- language="xml" -->
  * <object class="GtkButton" id="button1">
  *   <style>
  *     <class name="my-special-button-class"/>
@@ -295,7 +296,8 @@
  *
  * GtkWidget allows defining accessibility information, such as properties,
  * relations, and states, using the custom `<accessibility>` element:
- * |[
+ *
+ * |[<!-- language="xml" -->
  * <object class="GtkButton" id="button1">
  *   <accessibility>
  *     <property name="label">Download</property>
@@ -338,7 +340,8 @@
  * `<template>` tag.
  *
  * An example of a GtkBuilder Template Definition:
- * |[
+ *
+ * |[<!-- language="xml" -->
  * <interface>
  *   <template class="FooWidget" parent="GtkBox">
  *     <property name="orientation">horizontal</property>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]