diff options
author | Matthias Clasen <mclasen@redhat.com> | 2015-11-05 08:18:06 -0500 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2015-11-05 08:18:06 -0500 |
commit | 87deb25dc30343e9426597c67d89c3f5d2ad9115 (patch) | |
tree | 581dffdff75ac7a9897d5caf4ce6576bd91301f8 /gtk/gtkstacksidebar.c | |
parent | c59ef7bf2fb9e496f051d6a69a1bbb5d4ac34c77 (diff) | |
download | gtk+-87deb25dc30343e9426597c67d89c3f5d2ad9115.tar.gz |
stack sidebar: Drop the .sidebar-item style class
It is not needed to achieve the desired theming.
Diffstat (limited to 'gtk/gtkstacksidebar.c')
-rw-r--r-- | gtk/gtkstacksidebar.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/gtk/gtkstacksidebar.c b/gtk/gtkstacksidebar.c index ba5a773e7f..eed6709baa 100644 --- a/gtk/gtkstacksidebar.c +++ b/gtk/gtkstacksidebar.c @@ -46,7 +46,12 @@ * * # CSS nodes * - * GtkStackSidebar has a single CSS node with name stacksidebar. + * GtkStackSidebar has a single CSS node with name stacksidebar and + * style class .sidebar. + * + * When circumstances require it, GtkStackSwitcher adds the + * .needs-attention style class to the widgets representing the stack + * pages. * * Since: 3.16 */ @@ -291,10 +296,6 @@ add_child (GtkWidget *widget, update_row (sidebar, widget, row); - /* Fix up styling */ - style = gtk_widget_get_style_context (row); - gtk_style_context_add_class (style, "sidebar-item"); - /* Hook up for events */ g_signal_connect (widget, "child-notify::title", G_CALLBACK (on_child_updated), sidebar); |