StyleContext: Fix CSS snippet language, node names

The language is useful for parsing tools, such as that of gtkmm, which
otherwise assumes these are C snippets and elides them from its
generated documentation.

The old GtkBlah node names are just plain obsolete.
This commit is contained in:
Daniel Boles
2017-10-12 19:40:19 +01:00
parent b1cb34cbbb
commit 491eea5680

View File

@ -1325,13 +1325,13 @@ gtk_style_context_restore (GtkStyleContext *context)
* In the CSS file format, a #GtkEntry defining a “search” * In the CSS file format, a #GtkEntry defining a “search”
* class, would be matched by: * class, would be matched by:
* *
* |[ * |[ <!-- language="CSS" -->
* entry.search { ... } * entry.search { ... }
* ]| * ]|
* *
* While any widget defining a “search” class would be * While any widget defining a “search” class would be
* matched by: * matched by:
* |[ * |[ <!-- language="CSS" -->
* .search { ... } * .search { ... }
* ]| * ]|
* *
@ -1495,15 +1495,15 @@ _gtk_style_context_check_region_name (const gchar *str)
* In the CSS file format, a #GtkTreeView defining a “row” * In the CSS file format, a #GtkTreeView defining a “row”
* region, would be matched by: * region, would be matched by:
* *
* |[ * |[ <!-- language="CSS" -->
* GtkTreeView row { ... } * treeview row { ... }
* ]| * ]|
* *
* Pseudo-classes are used for matching @flags, so the two * Pseudo-classes are used for matching @flags, so the two
* following rules: * following rules:
* |[ * |[ <!-- language="CSS" -->
* GtkTreeView row:nth-child(even) { ... } * treeview row:nth-child(even) { ... }
* GtkTreeView row:nth-child(odd) { ... } * treeview row:nth-child(odd) { ... }
* ]| * ]|
* *
* would apply to even and odd rows, respectively. * would apply to even and odd rows, respectively.
@ -2266,12 +2266,12 @@ gtk_style_context_lookup_color (GtkStyleContext *context,
* ]| * ]|
* *
* Can be handled in the CSS file like this: * Can be handled in the CSS file like this:
* |[ * |[ <!-- language="CSS" -->
* GtkButton { * button {
* background-color: #f00 * background-color: #f00
* } * }
* *
* GtkButton:hover { * button:hover {
* background-color: #fff; * background-color: #fff;
* transition: 200ms linear * transition: 200ms linear
* } * }