[gtk+] button: Add diagrams to CSS node docs for buttons



commit 67b739b58a8b7a3c20100fdab599abc437042723
Author: Matthias Clasen <mclasen redhat com>
Date:   Tue Nov 3 10:17:41 2015 -0500

    button: Add diagrams to CSS node docs for buttons

 gtk/gtkcheckbutton.c |   10 ++++++++++
 gtk/gtkradiobutton.c |   10 ++++++++++
 2 files changed, 20 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkcheckbutton.c b/gtk/gtkcheckbutton.c
index c1963f3..9e79b0b 100644
--- a/gtk/gtkcheckbutton.c
+++ b/gtk/gtkcheckbutton.c
@@ -53,9 +53,19 @@
  *
  * # CSS nodes
  *
+ * |[<!-- language="plain" -->
+ * checkbutton
+ * ╰── check
+ * ]|
+ *
  * A GtkCheckButton with indicator (see gtk_toggle_button_set_mode()) has a
  * main CSS node with name checkbutton and a subnode with name check.
  *
+ * |[<!-- language="plain" -->
+ * button.check
+ * ╰── [check]
+ * ]|
+ *
  * A GtkCheckButton without indicator changes the name of its main node
  * to button and adds a .check style class to it. The subnode is invisible
  * in this case.
diff --git a/gtk/gtkradiobutton.c b/gtk/gtkradiobutton.c
index 8ee3a74..148038b 100644
--- a/gtk/gtkradiobutton.c
+++ b/gtk/gtkradiobutton.c
@@ -74,9 +74,19 @@
  *
  * # CSS nodes
  *
+ * |[<!-- language="plain" -->
+ * radiobutton
+ * ╰── radio
+ * ]|
+ *
  * A GtkRadioButton with indicator (see gtk_toggle_button_set_mode()) has a
  * main CSS node with name radiobutton and a subnode with name radio.
  *
+ * |[<!-- language="plain" -->
+ * button.radio
+ * ╰── [radio]
+ * ]|
+ *
  * A GtkRadioButton without indicator changes the name of its main node
  * to button and adds a .radio style class to it. The subnode is invisible
  * in this case.


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