summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornana-4 <hnmaigo@gmail.com>2020-11-22 13:36:54 +0900
committerJakub Steiner <jimmac@gmail.com>2020-11-23 10:51:58 +0100
commit8e81cbef2c96bd18ea4e98876eff56bf519c8a91 (patch)
tree08590640606d024e6b14bcf8ff87c4dc4cfecc1d
parent47d572834b9b5997a020b066d833b823a284defd (diff)
downloadgtk+-8e81cbef2c96bd18ea4e98876eff56bf519c8a91.tar.gz
stacksidebar: Add missing .navigation-sidebar to the inner list
Also don't set :show-separators, which is not applied in other sidebars. See https://gitlab.gnome.org/GNOME/gtk/-/issues/3382
-rw-r--r--gtk/gtkstacksidebar.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtkstacksidebar.c b/gtk/gtkstacksidebar.c
index ef43761d62..f611d023fa 100644
--- a/gtk/gtkstacksidebar.c
+++ b/gtk/gtkstacksidebar.c
@@ -150,7 +150,7 @@ gtk_stack_sidebar_init (GtkStackSidebar *self)
gtk_widget_set_parent (sw, GTK_WIDGET (self));
self->list = GTK_LIST_BOX (gtk_list_box_new ());
- gtk_list_box_set_show_separators (GTK_LIST_BOX (self->list), TRUE);
+ gtk_widget_add_css_class (GTK_WIDGET (self->list), "navigation-sidebar");
gtk_scrolled_window_set_child (GTK_SCROLLED_WINDOW (sw), GTK_WIDGET (self->list));