[gtk/nana-4/gtk-sidebar-style-fixes: 1/8] stacksidebar: Add missing .navigation-sidebar to the inner list




commit 8e81cbef2c96bd18ea4e98876eff56bf519c8a91
Author: nana-4 <hnmaigo gmail com>
Date:   Sun Nov 22 13:36:54 2020 +0900

    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

 gtk/gtkstacksidebar.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
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));
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]