[gtk/ebassi/for-master: 4/5] docs: Annotate XML fragments as such
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/ebassi/for-master: 4/5] docs: Annotate XML fragments as such
- Date: Fri, 29 Jan 2021 16:31:30 +0000 (UTC)
commit 988ebc2248fe368dbe91b1540cc04b3ef6289187
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 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>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]