summaryrefslogtreecommitdiff
path: root/gtk/gtktoolbutton.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2015-10-31 20:52:09 -0400
committerMatthias Clasen <mclasen@redhat.com>2015-10-31 20:52:09 -0400
commit4323dd34f3bd3caf7be854f978e3742ba1b0965e (patch)
treea2315fbecb74ab592def71e58035f31db3449f69 /gtk/gtktoolbutton.c
parentdba8eba6dbd309ddda7b1a07184f6fafe8f8574e (diff)
downloadgtk+-4323dd34f3bd3caf7be854f978e3742ba1b0965e.tar.gz
tool button: Add an element name
Unsurprisingly, it is toolbutton.
Diffstat (limited to 'gtk/gtktoolbutton.c')
-rw-r--r--gtk/gtktoolbutton.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/gtk/gtktoolbutton.c b/gtk/gtktoolbutton.c
index 8ccf3cf073..127168f812 100644
--- a/gtk/gtktoolbutton.c
+++ b/gtk/gtktoolbutton.c
@@ -60,6 +60,10 @@
* that widget is used as the icon. Otherwise, if #GtkToolButton:stock-id is
* non-%NULL, the icon is determined by the stock item. Otherwise,
* the button does not have a icon.
+ *
+ * # CSS nodes
+ *
+ * GtkToolButton has a single CSS node with name toolbutton.
*/
@@ -328,6 +332,8 @@ gtk_tool_button_class_init (GtkToolButtonClass *klass)
G_TYPE_NONE, 0);
g_type_class_add_private (object_class, sizeof (GtkToolButtonPrivate));
+
+ gtk_widget_class_set_css_name (widget_class, "toolbutton");
}
static void