mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-02 22:48:40 +00:00
GTKUI: Add a separator after Plugins in Preferences
To help distinguish where the plugin pages start a horizontal seperator is now included after Plugins.
This commit is contained in:
parent
bf77f42674
commit
8d63ce3ce5
1 changed files with 6 additions and 1 deletions
|
@ -89,10 +89,15 @@ class Preferences(component.Component):
|
||||||
# Add the default categories
|
# Add the default categories
|
||||||
i = 0
|
i = 0
|
||||||
for category in (_("Downloads"), _("Network"), _("Bandwidth"), _("Interface"), _("Other"),
|
for category in (_("Downloads"), _("Network"), _("Bandwidth"), _("Interface"), _("Other"),
|
||||||
_("Daemon"), _("Queue"), _("Proxy"), _("Cache"), _("Plugins")):
|
_("Daemon"), _("Queue"), _("Proxy"), _("Cache"), _("Plugins"), "_separator_"):
|
||||||
self.liststore.append([i, category])
|
self.liststore.append([i, category])
|
||||||
i += 1
|
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
|
# Setup accounts tab lisview
|
||||||
self.accounts_levels_mapping = None
|
self.accounts_levels_mapping = None
|
||||||
self.accounts_authlevel = self.builder.get_object("accounts_authlevel")
|
self.accounts_authlevel = self.builder.get_object("accounts_authlevel")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue