summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCalum Lind <calumlind+deluge@gmail.com>2013-05-12 00:07:48 +0100
committerCalum Lind <calumlind+deluge@gmail.com>2013-05-12 00:10:32 +0100
commit8d63ce3ce524d141771dd850dd7217d0b73be13e (patch)
treef7c4350034f6c4c4d9fb95ee22c74c32797f819c
parentbf77f42674326656c63d1fc13b6db631091955ec (diff)
downloaddeluge-8d63ce3ce524d141771dd850dd7217d0b73be13e.tar.gz
deluge-8d63ce3ce524d141771dd850dd7217d0b73be13e.tar.bz2
deluge-8d63ce3ce524d141771dd850dd7217d0b73be13e.zip
GTKUI: Add a separator after Plugins in Preferences
To help distinguish where the plugin pages start a horizontal seperator is now included after Plugins.
-rw-r--r--deluge/ui/gtkui/preferences.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/deluge/ui/gtkui/preferences.py b/deluge/ui/gtkui/preferences.py
index 36e0b58da..94be00b5e 100644
--- a/deluge/ui/gtkui/preferences.py
+++ b/deluge/ui/gtkui/preferences.py
@@ -89,10 +89,15 @@ class Preferences(component.Component):
# Add the default categories
i = 0
for category in (_("Downloads"), _("Network"), _("Bandwidth"), _("Interface"), _("Other"),
- _("Daemon"), _("Queue"), _("Proxy"), _("Cache"), _("Plugins")):
+ _("Daemon"), _("Queue"), _("Proxy"), _("Cache"), _("Plugins"), "_separator_"):
self.liststore.append([i, category])
i += 1
+ def set_separator(model, iter, data=None):
+ if "_separator_" == model.get_value(iter, 1):
+ return True
+ self.treeview.set_row_separator_func(set_separator)
+
# Setup accounts tab lisview
self.accounts_levels_mapping = None
self.accounts_authlevel = self.builder.get_object("accounts_authlevel")