Commit 9e4a4500 authored by Guillaume Desmottes's avatar Guillaume Desmottes Committed by Lucas Beeler

Fixes an issue in which the sidebar was not properly styled. Closes #6839.

parent 52b174e1
...@@ -22,6 +22,7 @@ Chris Cummins <christopher.e.cummins@intel.com> ...@@ -22,6 +22,7 @@ Chris Cummins <christopher.e.cummins@intel.com>
Valentin David <valentin.david@gmail.com> Valentin David <valentin.david@gmail.com>
Sergey Davidoff <shnatsel@gmail.com> Sergey Davidoff <shnatsel@gmail.com>
Tobe Deprez <tobedeprez@gmx.com> Tobe Deprez <tobedeprez@gmx.com>
Guillaume Desmottes <gdesmott@gnome.org>
Fryderyk Dziarmagowski <fdziarmagowski@gmail.com> Fryderyk Dziarmagowski <fdziarmagowski@gmail.com>
Josh Freeman <josh@twilightedge.com> Josh Freeman <josh@twilightedge.com>
guillaumev <guillaume@viguierjust.com> guillaumev <guillaume@viguierjust.com>
......
...@@ -1285,6 +1285,7 @@ public class LibraryWindow : AppWindow { ...@@ -1285,6 +1285,7 @@ public class LibraryWindow : AppWindow {
Gtk.ScrolledWindow scrolled_sidebar = new Gtk.ScrolledWindow(null, null); Gtk.ScrolledWindow scrolled_sidebar = new Gtk.ScrolledWindow(null, null);
scrolled_sidebar.set_policy(Gtk.PolicyType.NEVER, Gtk.PolicyType.AUTOMATIC); scrolled_sidebar.set_policy(Gtk.PolicyType.NEVER, Gtk.PolicyType.AUTOMATIC);
scrolled_sidebar.add(sidebar_tree); scrolled_sidebar.add(sidebar_tree);
scrolled_sidebar.get_style_context().add_class(Gtk.STYLE_CLASS_SIDEBAR);
scrolled_sidebar.set_shadow_type(Gtk.ShadowType.IN); scrolled_sidebar.set_shadow_type(Gtk.ShadowType.IN);
get_style_context().add_class("sidebar-pane-separator"); get_style_context().add_class("sidebar-pane-separator");
......
...@@ -98,7 +98,6 @@ public class Sidebar.Tree : Gtk.TreeView { ...@@ -98,7 +98,6 @@ public class Sidebar.Tree : Gtk.TreeView {
public Tree(Gtk.TargetEntry[] target_entries, Gdk.DragAction actions, public Tree(Gtk.TargetEntry[] target_entries, Gdk.DragAction actions,
ExternalDropHandler drop_handler) { ExternalDropHandler drop_handler) {
set_model(store); set_model(store);
get_style_context().add_class("sidebar");
Gtk.TreeViewColumn text_column = new Gtk.TreeViewColumn(); Gtk.TreeViewColumn text_column = new Gtk.TreeViewColumn();
text_column.set_sizing(Gtk.TreeViewColumnSizing.FIXED); text_column.set_sizing(Gtk.TreeViewColumnSizing.FIXED);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment