From c97f809bdca84f6f776e9e3a78a499a86bae57f7 Mon Sep 17 00:00:00 2001 From: Andrew Resch Date: Fri, 15 Oct 2010 19:31:36 -0700 Subject: [PATCH] Fix #1349 force a theme style with expander-size = 15 to show entries in the sidebar properly. --- deluge/ui/gtkui/filtertreeview.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/deluge/ui/gtkui/filtertreeview.py b/deluge/ui/gtkui/filtertreeview.py index 37dd69bd4..1438c70dc 100644 --- a/deluge/ui/gtkui/filtertreeview.py +++ b/deluge/ui/gtkui/filtertreeview.py @@ -123,7 +123,10 @@ class FilterTreeView(component.Component): self.label_view.set_show_expanders(True) self.label_view.set_headers_visible(False) self.label_view.set_level_indentation(-35) - + # Force the theme to use an expander-size of 15 so that we don't cut out + # entries due to our indentation hack. + gtk.rc_parse_string('style "treeview-style" { GtkTreeView::expander-size = 15 } class "GtkTreeView" style "treeview-style"') + self.label_view.set_model(self.treestore) self.label_view.get_selection().connect("changed", self.on_selection_changed) self.create_model_filter()