Merge branch 'matthiasc/for-master' into 'master'

Matthiasc/for master

See merge request GNOME/gtk!3004
This commit is contained in:
Matthias Clasen 2020-12-27 05:21:26 +00:00
commit daded2bc86
4 changed files with 26 additions and 6 deletions

View File

@ -58,8 +58,15 @@
*
* # CSS nodes
*
* GtkColorButton has a single CSS node with name button. To differentiate
* it from a plain #GtkButton, it gets the .color style class.
* |[<!-- language="plain" -->
* colorbutton
* button.color
* [content]
*]|
*
* GtkColorButton has a single CSS node with name colorbutton which
* contains a button node. To differentiate it from a plain #GtkButton,
* it gets the .color style class.
*/
typedef struct _GtkColorButtonClass GtkColorButtonClass;

View File

@ -59,7 +59,14 @@
*
* # CSS nodes
*
* GtkFontButton has a single CSS node with name fontbutton.
* |[<!-- language="plain" -->
* fontbutton
* button.font
* [content]
*]|
*
* GtkFontButton has a single CSS node with name fontbutton which
* contains a button node with the .font style class.
*/
typedef struct _GtkFontButtonClass GtkFontButtonClass;

View File

@ -104,8 +104,14 @@
*
* # CSS nodes
*
* GtkMenuButton has a single CSS node with name button. To differentiate
* it from a plain #GtkButton, it gets the .popup style class.
* |[<!-- language="plain" -->
* menubutton
* button.toggle
* [content]
*]|
*
* GtkMenuButton has a single CSS node with name menubutton
* which contains a toggle button node.
*
* # Accessibility
*

View File

@ -489,7 +489,7 @@ update_node_name (GtkModelButton *self)
{
case GTK_BUTTON_ROLE_TITLE:
start_name = "arrow";
end_name = NULL;
end_name = "";
break;
case GTK_BUTTON_ROLE_NORMAL:
start_name = NULL;