summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@gnome.org>2021-01-28 15:42:22 +0000
committerEmmanuele Bassi <ebassi@gnome.org>2021-01-29 16:31:10 +0000
commit988ebc2248fe368dbe91b1540cc04b3ef6289187 (patch)
tree979e3a3d759bf8909de21b5e0044c8bebfdeaed1
parent9f31e95420fa1b075cdda016678a378c656b6e57 (diff)
downloadgtk+-988ebc2248fe368dbe91b1540cc04b3ef6289187.tar.gz
docs: Annotate XML fragments as such
This way we can get syntax highlighting.
-rw-r--r--gtk/gtkwidget.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c
index b7c0bc3ae4..2904fa569a 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>