fontbutton: Call the css node "fontbutton"

Otherwise the default looks like a button inside a button.
This commit is contained in:
Timm Bäder 2017-05-04 09:36:22 +02:00 committed by Matthias Clasen
parent b9fb186f46
commit aa5f90d9f5
2 changed files with 3 additions and 3 deletions

View File

@ -47,7 +47,7 @@
*
* Button-like widgets like #GtkToggleButton, #GtkMenuButton, #GtkVolumeButton,
* #GtkLockButton, #GtkColorButton, #GtkFontButton or #GtkFileChooserButton use
* style classes such as .toggle, .popup, .scale, .lock, .color, .font, .file
* style classes such as .toggle, .popup, .scale, .lock, .color, .file
* to differentiate themselves from a plain GtkButton.
*/

View File

@ -58,7 +58,7 @@
*
* # CSS nodes
*
* GtkFontButton has a single CSS node with name button and style class .font.
* GtkFontButton has a single CSS node with name fontbutton.
*/
@ -611,7 +611,7 @@ gtk_font_button_class_init (GtkFontButtonClass *klass)
g_cclosure_marshal_VOID__VOID,
G_TYPE_NONE, 0);
gtk_widget_class_set_css_name (widget_class, "button");
gtk_widget_class_set_css_name (widget_class, "fontbutton");
}
static void