From 67b739b58a8b7a3c20100fdab599abc437042723 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Tue, 3 Nov 2015 10:17:41 -0500 Subject: [PATCH] button: Add diagrams to CSS node docs for buttons --- gtk/gtkcheckbutton.c | 10 ++++++++++ gtk/gtkradiobutton.c | 10 ++++++++++ 2 files changed, 20 insertions(+) diff --git a/gtk/gtkcheckbutton.c b/gtk/gtkcheckbutton.c index c1963f3e4b..9e79b0b5d4 100644 --- a/gtk/gtkcheckbutton.c +++ b/gtk/gtkcheckbutton.c @@ -53,9 +53,19 @@ * * # CSS nodes * + * |[ + * 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. * + * |[ + * 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 8ee3a746f6..148038b6be 100644 --- a/gtk/gtkradiobutton.c +++ b/gtk/gtkradiobutton.c @@ -74,9 +74,19 @@ * * # CSS nodes * + * |[ + * 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. * + * |[ + * 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.