summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2015-11-03 23:24:49 -0500
committerMatthias Clasen <mclasen@redhat.com>2015-11-03 23:24:49 -0500
commitead35ee12f4f2c39206f6a90277462a6230c6210 (patch)
treecb0d0498d0319d43653380b804b23d860f2e9230
parentef1bc737b072082ed0c4da68d633822f63eba40f (diff)
downloadgtk+-ead35ee12f4f2c39206f6a90277462a6230c6210.tar.gz
stack switcher: Use an element name
-rw-r--r--gtk/gtkstackswitcher.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/gtk/gtkstackswitcher.c b/gtk/gtkstackswitcher.c
index 5c14ed0280..32b643e303 100644
--- a/gtk/gtkstackswitcher.c
+++ b/gtk/gtkstackswitcher.c
@@ -42,6 +42,10 @@
* with the same stack widget.
*
* The GtkStackSwitcher widget was added in 3.10.
+ *
+ * # CSS nodes
+ *
+ * GtkStackSwitcher has a single CSS node names stackswitcher.
*/
typedef struct _GtkStackSwitcherPrivate GtkStackSwitcherPrivate;
@@ -512,6 +516,7 @@ static void
gtk_stack_switcher_class_init (GtkStackSwitcherClass *class)
{
GObjectClass *object_class = G_OBJECT_CLASS (class);
+ GtkWidgetClass *widget_class = GTK_WIDGET_CLASS (class);
object_class->get_property = gtk_stack_switcher_get_property;
object_class->set_property = gtk_stack_switcher_set_property;
@@ -526,6 +531,8 @@ gtk_stack_switcher_class_init (GtkStackSwitcherClass *class)
GTK_TYPE_STACK,
GTK_PARAM_READWRITE |
G_PARAM_CONSTRUCT));
+
+ gtk_widget_class_set_css_name (widget_class, "stackswitcher");
}
/**