button: Add diagrams to CSS node docs for buttons

This commit is contained in:
Matthias Clasen 2015-11-03 10:17:41 -05:00
parent 6328cf5ee5
commit 67b739b58a
2 changed files with 20 additions and 0 deletions

View File

@ -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.

View File

@ -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.