[gtk+] menu: Add diagrams to CSS documentation



commit 8e5c7ac028a221800069f325da2c1b0ba95304a0
Author: Matthias Clasen <mclasen redhat com>
Date:   Tue Nov 3 14:24:25 2015 -0500

    menu: Add diagrams to CSS documentation

 gtk/gtkcheckmenuitem.c |    6 ++++++
 gtk/gtkmenu.c          |    7 +++++++
 gtk/gtkmenuitem.c      |    6 ++++++
 gtk/gtkradiomenuitem.c |    6 ++++++
 4 files changed, 25 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkcheckmenuitem.c b/gtk/gtkcheckmenuitem.c
index 6a1ad22..3b26552 100644
--- a/gtk/gtkcheckmenuitem.c
+++ b/gtk/gtkcheckmenuitem.c
@@ -51,6 +51,12 @@
  *
  * # CSS nodes
  *
+ * |[<!-- language="plain" -->
+ * menuitem
+ * ├── ...
+ * ╰── check.right
+ * ]|
+ *
  * GtkCheckMenuItem has a main CSS node with name menuitem, and a subnode
  * with name check, which gets the .left or .right style class.
  */
diff --git a/gtk/gtkmenu.c b/gtk/gtkmenu.c
index 3bbc9aa..a3da298 100644
--- a/gtk/gtkmenu.c
+++ b/gtk/gtkmenu.c
@@ -85,6 +85,13 @@
  *
  * # CSS nodes
  *
+ * |[<!-- language="plain" -->
+ * menu
+ * ├── arrow.top
+ * ├── ...
+ * ╰── arrow.bottom
+ * ]|
+ *
  * The main CSS node of GtkMenu has name menu, and there are two subnodes
  * with name arrow, for scrolling menu arrows. These subnodes get the
  * .top and .bottom style classes.
diff --git a/gtk/gtkmenuitem.c b/gtk/gtkmenuitem.c
index 450fb70..688ecee 100644
--- a/gtk/gtkmenuitem.c
+++ b/gtk/gtkmenuitem.c
@@ -90,6 +90,12 @@
  *
  * # CSS nodes
  *
+ * |[<!-- language="plain" -->
+ * menuitem
+ * ├── ...
+ * ╰── [arrow.right]
+ * ]|
+ *
  * GtkMenuItem has a single CSS node with name menuitem. If the menuitem
  * has a submenu, it gets another CSS node with name arrow, which has
  * the .left or .right style class.
diff --git a/gtk/gtkradiomenuitem.c b/gtk/gtkradiomenuitem.c
index 9438ed8..919b847 100644
--- a/gtk/gtkradiomenuitem.c
+++ b/gtk/gtkradiomenuitem.c
@@ -64,6 +64,12 @@
  *
  * # CSS nodes
  *
+ * |[<!-- language="plain" -->
+ * menuitem
+ * ├── ...
+ * ╰── radio
+ * ]|
+ *
  * GtkRadioMenuItem has a main CSS node with name menuitem, and a subnode
  * with name radio, which gets the .left or .right style class.
  */


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