Skip to content

Commit

Permalink
- added help link to config_ui
Browse files Browse the repository at this point in the history
  • Loading branch information
Laharah committed Feb 22, 2016
1 parent e83c04a commit 4620001
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 5 deletions.
45 changes: 40 additions & 5 deletions filebottool/data/config.glade
Original file line number Diff line number Diff line change
Expand Up @@ -127,17 +127,52 @@
</packing>
</child>
<child>
<widget class="GtkLabel" id="rule_orders_label">
<widget class="GtkHBox" id="hbox2">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="tooltip" translatable="yes">On torrent completion. Executes the first rule that matches.</property>
<property name="xalign">0</property>
<property name="label" translatable="yes">Auto Execute Rules:</property>
<property name="spacing">3</property>
<child>
<widget class="GtkLabel" id="rule_orders_label">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="tooltip" translatable="yes">On torrent completion. Executes the first rule that matches.</property>
<property name="xalign">0</property>
<property name="label" translatable="yes">Auto Execute Rules:</property>
</widget>
<packing>
<property name="expand">False</property>
<property name="fill">False</property>
<property name="padding">2</property>
<property name="position">0</property>
</packing>
</child>
<child>
<widget class="GtkEventBox" id="eventbox1">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="visible_window">False</property>
<signal name="button_press_event" handler="on_auto_sort_help_clicked" swapped="no"/>
<child>
<widget class="GtkLabel" id="auto_sort_help">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="tooltip" translatable="yes">On torrent completion. Executes the first rule that matches.</property>
<property name="xalign">0</property>
<property name="label" translatable="yes">&lt;span color="blue"&gt;&lt;u&gt;help?&lt;/u&gt;&lt;/span&gt;</property>
<property name="use_markup">True</property>
</widget>
</child>
</widget>
<packing>
<property name="expand">False</property>
<property name="fill">False</property>
<property name="position">1</property>
</packing>
</child>
</widget>
<packing>
<property name="expand">False</property>
<property name="fill">False</property>
<property name="padding">2</property>
<property name="position">2</property>
</packing>
</child>
Expand Down
5 changes: 5 additions & 0 deletions filebottool/gtkui/config_ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

import gtk
import time
import webbrowser

import deluge.component as component

Expand Down Expand Up @@ -68,6 +69,7 @@ def text_edited(widget, path, text):
"on_move_rule_down": self.rules_list.move_down,
"on_remove_rule": self.rules_list.remove,
"on_add_rule": self.on_add_rule,
"on_auto_sort_help_clicked": self.on_auto_sort_help_clicked,
})
self.gather_time = None
if settings:
Expand Down Expand Up @@ -161,6 +163,9 @@ def on_add_rule(self, *args):
def on_rule_handler_combo_changed(self, widget, path, text):
self.rules_list.model[path][3] = text

def on_auto_sort_help_clicked(self, *args):
webbrowser.open('https://github.com/Laharah/deluge-FileBotTool/wiki/Auto-Sorting',
new=2)

#########
# Section: Utilities
Expand Down

0 comments on commit 4620001

Please sign in to comment.