diff options
author | Matthias Clasen <mclasen@redhat.com> | 2015-11-03 23:27:34 -0500 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2015-11-03 23:27:34 -0500 |
commit | 099cde5f80e693f30b4b19f3c12936dc89d9afc0 (patch) | |
tree | dfe980b36ad66979e0e92df8d973dcbb5924164d /gtk/gtkstacksidebar.c | |
parent | ead35ee12f4f2c39206f6a90277462a6230c6210 (diff) | |
download | gtk+-099cde5f80e693f30b4b19f3c12936dc89d9afc0.tar.gz |
stack sidebar: Use an element name
Diffstat (limited to 'gtk/gtkstacksidebar.c')
-rw-r--r-- | gtk/gtkstacksidebar.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gtk/gtkstacksidebar.c b/gtk/gtkstacksidebar.c index df96f37c09..ba5a773e7f 100644 --- a/gtk/gtkstacksidebar.c +++ b/gtk/gtkstacksidebar.c @@ -44,6 +44,10 @@ * can use gtk_stack_sidebar_set_stack() to connect the #GtkStackSidebar * to the #GtkStack. * + * # CSS nodes + * + * GtkStackSidebar has a single CSS node with name stacksidebar. + * * Since: 3.16 */ @@ -434,6 +438,7 @@ static void gtk_stack_sidebar_class_init (GtkStackSidebarClass *klass) { GObjectClass *object_class = G_OBJECT_CLASS (klass); + GtkWidgetClass *widget_class = GTK_WIDGET_CLASS (klass); object_class->dispose = gtk_stack_sidebar_dispose; object_class->finalize = gtk_stack_sidebar_finalize; @@ -447,6 +452,8 @@ gtk_stack_sidebar_class_init (GtkStackSidebarClass *klass) G_PARAM_READWRITE|G_PARAM_STATIC_STRINGS|G_PARAM_EXPLICIT_NOTIFY); g_object_class_install_properties (object_class, N_PROPERTIES, obj_properties); + + gtk_widget_class_set_css_name (widget_class, "stacksidebar"); } /** |