From 09f7c8511bf9dd6d597411d922b11c0a1c429ed9 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Tue, 3 Nov 2015 12:51:52 -0500 Subject: [PATCH] model button: Add diagrams to the CSS node documentation --- gtk/gtkmodelbutton.c | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) 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 @@ * * * ]| + * + * # CSS nodes + * + * |[ + * modelbutton + * ├── ... + * ╰── check + * ]| + * + * |[ + * modelbutton + * ├── ... + * ╰── radio + * ]| + * + * |[ + * 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