summaryrefslogtreecommitdiff
path: root/gtk/gtkmodelbutton.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2015-11-03 12:51:52 -0500
committerMatthias Clasen <mclasen@redhat.com>2015-11-03 12:51:52 -0500
commit09f7c8511bf9dd6d597411d922b11c0a1c429ed9 (patch)
treeb74a50902be0a4a1af3598371f28a4a71a766f30 /gtk/gtkmodelbutton.c
parent19b34a44b232d6b86700382ade1daced9d601a60 (diff)
downloadgtk+-09f7c8511bf9dd6d597411d922b11c0a1c429ed9.tar.gz
model button: Add diagrams to the CSS node documentation
Diffstat (limited to 'gtk/gtkmodelbutton.c')
-rw-r--r--gtk/gtkmodelbutton.c27
1 files changed, 27 insertions, 0 deletions
diff --git a/gtk/gtkmodelbutton.c b/gtk/gtkmodelbutton.c
index e65cc80418..1c60e4b58e 100644
--- a/gtk/gtkmodelbutton.c
+++ b/gtk/gtkmodelbutton.c
@@ -105,6 +105,33 @@
* </child>
* </object>
* ]|
+ *
+ * # CSS nodes
+ *
+ * |[<!-- language="plain" -->
+ * modelbutton
+ * ├── ...
+ * ╰── check
+ * ]|
+ *
+ * |[<!-- language="plain" -->
+ * modelbutton
+ * ├── ...
+ * ╰── radio
+ * ]|
+ *
+ * |[<!-- language="plain" -->
+ * modelbutton
+ * ├── ...
+ * ╰── arrow
+ * ]|
+ *
+ * GtkModelButton has a main CSS node with name modelbutton, and a subnode,
+ * which will have the name check, radio or arrow, depending on the role
+ * of the button and whether it has a menu name set.
+ *
+ * The subnode is positioned before or after the content nodes and gets the
+ * .left or .right style class, depending on where it is located.
*/
struct _GtkModelButton