diff --git a/deluge/plugins/label/label/data/label_options.glade b/deluge/plugins/label/label/data/label_options.glade index 63d3ead7e..3e86a3e3d 100644 --- a/deluge/plugins/label/label/data/label_options.glade +++ b/deluge/plugins/label/label/data/label_options.glade @@ -1,6 +1,6 @@ - + 5 @@ -17,45 +17,203 @@ True True - + True - 6 - 4 - 5 - 5 + 0 + GTK_SHADOW_NONE - - - - - - - - - - - - - - - - - - - - - - - - - - 30 + True + 12 + + + True + 5 + 4 + 5 + 5 + + + + + + + + + + + + + + + + + + + + + + + + True + + + 2 + 4 + 5 + GTK_FILL + + + + + True + True + -1 -1 9999 1 10 10 + True + + + 1 + 2 + 3 + 4 + + + + + + + True + 0 + Connections: + + + 3 + 4 + GTK_FILL + GTK_FILL + + + + + True + True + -1 -1 9999 1 10 10 + True + + + 1 + 2 + 2 + 3 + + + + + + + True + Kib/s + + + 2 + 3 + 1 + 2 + GTK_FILL + GTK_FILL + + + + + True + 0 + Download Speed: + True + + + GTK_FILL + GTK_FILL + + + + + True + 0 + Upload Speed: + + + 1 + 2 + GTK_FILL + GTK_FILL + + + + + True + 0 + Upload Slots: + + + 2 + 3 + GTK_FILL + GTK_FILL + + + + + True + True + -1 -1 9999 1 10 10 + + + 1 + 2 + + + + + + + True + Kib/s + + + 2 + 3 + GTK_FILL + GTK_FILL + + + + + True + True + -1 -1 9999 1 10 10 + + + 1 + 2 + 1 + 2 + + + + + + + True + + + 3 + 4 + GTK_FILL + + + + - - 1 - 2 - @@ -66,168 +224,7 @@ True - 4 - - - - - True - - - 1 - 2 - 5 - 6 - - - - - True - True - -1 -1 9999 1 10 10 - True - - - 2 - 3 - 4 - 5 - - GTK_EXPAND - - - - - True - 0 - Connections: - - - 1 - 2 - 4 - 5 - GTK_FILL - - - - - - True - True - -1 -1 9999 1 10 10 - True - - - 2 - 3 - 3 - 4 - GTK_EXPAND - GTK_EXPAND - - - - - True - Kib/s - - - 3 - 4 - 2 - 3 - GTK_EXPAND - - - - - True - 0 - Download Speed: - True - - - 1 - 2 - 1 - 2 - GTK_FILL - - - - - - True - 0 - Upload Speed: - - - 1 - 2 - 2 - 3 - GTK_FILL - - - - - - True - 0 - Upload Slots: - - - 1 - 2 - 3 - 4 - GTK_FILL - - - - - - True - True - -1 -1 9999 1 10 10 - - - 2 - 3 - 1 - 2 - GTK_EXPAND - GTK_EXPAND - - - - - True - Kib/s - - - 3 - 4 - 1 - 2 - GTK_EXPAND | GTK_SHRINK | GTK_FILL - GTK_EXPAND - - - - - True - True - -1 -1 9999 1 10 10 - - - 2 - 3 - 2 - 3 - GTK_EXPAND - GTK_EXPAND + label_item @@ -243,60 +240,119 @@ - + True - 7 - 3 + 0 + GTK_SHADOW_NONE - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + True + 12 + + + True + 4 + 3 + + + + + + + + + + + + + + + + + + True + + + 2 + 3 + 4 + GTK_FILL + + + + + True + True + 2 1 100 1 10 10 + 2 + + + 1 + 2 + 1 + 2 + + GTK_FILL + + + + + True + True + Remove at ratio + 0 + True + + + 2 + 3 + GTK_FILL + GTK_FILL + + + + + True + True + Stop seed at ratio: + 0 + True + + + 1 + 2 + GTK_FILL + GTK_FILL + + + + + True + True + Auto Managed + 0 + True + + + GTK_FILL + + + + + + True + + + 2 + 3 + 1 + 2 + GTK_FILL + + + + - - 1 - 2 - 6 - 7 - - - - - 30 - True - - - 1 - 2 - @@ -307,88 +363,7 @@ True - 3 - - - - - True - True - 2 1 100 1 10 10 - 2 - - - 2 - 3 - 2 - 3 - - - - - True - True - Remove at ratio - 0 - True - - - 1 - 2 - 3 - 4 - - - - - True - True - Stop seed at ratio: - 0 - True - - - 1 - 2 - 2 - 3 - - - - - True - True - Auto Managed - 0 - True - - - 1 - 2 - 1 - 2 - - - - - True - - - 1 - 2 - 4 - 5 - - - - - True - - - 1 - 2 - 5 - 6 + label_item @@ -408,88 +383,53 @@ - + True - 7 - 2 + 0 + GTK_SHADOW_NONE - - - - - - - - - - - - - - 30 + True + 12 + + + True + 3 + 2 + + + True + + + 2 + 1 + 2 + + + + + True + + + 2 + GTK_FILL + + + + + True + warning : not effective yet + + + 2 + 2 + 3 + GTK_FILL + + + + - - 1 - 2 - - - - - - - True - - - 1 - 2 - 5 - 6 - - - - - True - - - 1 - 2 - 4 - 5 - - - - - True - - - 1 - 2 - 3 - 4 - - - - - True - - - 1 - 2 - 2 - 3 - - - - - True - - - 1 - 2 - 1 - 2 - @@ -500,18 +440,7 @@ True - 2 - - - - - True - warning : not effective yet - - - 2 - 6 - 7 + label_item @@ -531,39 +460,54 @@ - + True + 0 + GTK_SHADOW_NONE - + True - Automatically apply label: - - - False - - - - - True - True - tracker1.org + 12 + + + True + + + True + True + tracker1.org tracker2.com -this doesn't do anything yet, be patient. +this doesn't do anything yet.. + + + + + True + <i>(1 line per tracker)</i> + True + + + False + 1 + + + + - - 1 - - + True - <i>(1 line per tracker)</i> - True + False + True + Automatically apply label: + 0 + True + True - False - 2 + label_item diff --git a/deluge/plugins/label/label/gtkui/label_config.py b/deluge/plugins/label/label/gtkui/label_config.py index c7424dfbc..35bdbaebf 100644 --- a/deluge/plugins/label/label/gtkui/label_config.py +++ b/deluge/plugins/label/label/gtkui/label_config.py @@ -63,6 +63,7 @@ class LabelConfig(object): def unload(self): self.plugin.remove_preferences_page("Label") + self.plugin.deregister_hook("on_apply_prefs", self.on_apply_prefs) self.plugin.deregister_hook("on_show_prefs", self.load_settings) def get_resource(self, filename):