mirror of
https://github.com/codex-storage/deluge.git
synced 2025-01-14 05:26:28 +00:00
add 'help translate this app' to help menu
This commit is contained in:
parent
cbf1c5c9ab
commit
9dfbe53ed6
@ -415,6 +415,16 @@
|
||||
<signal name="activate" handler="show_about_dialog"/>
|
||||
</widget>
|
||||
</child>
|
||||
<child>
|
||||
<widget class="GtkMenuItem" id="menuitem3">
|
||||
<property name="visible">True</property>
|
||||
<property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
|
||||
<property name="tooltip" translatable="yes">Help translate this application</property>
|
||||
<property name="label" translatable="yes">Help translate this application</property>
|
||||
<property name="use_underline">True</property>
|
||||
<signal name="activate" handler="launchpad"/>
|
||||
</widget>
|
||||
</child>
|
||||
</widget>
|
||||
</child>
|
||||
</widget>
|
||||
|
@ -149,6 +149,7 @@ class DelugeGTK:
|
||||
"share_toggle": self.share_toggle,
|
||||
## Help Menu
|
||||
"show_about_dialog": self.show_about_dialog,
|
||||
"launchpad": self.launchpad,
|
||||
## Toolbar
|
||||
"start_pause": self.start_pause,
|
||||
"update_tracker": self.update_tracker,
|
||||
@ -1142,6 +1143,8 @@ class DelugeGTK:
|
||||
_("Space Needed:") + " " + nice_need + "\n" + \
|
||||
_("Available Space:") + " " + nice_free)
|
||||
|
||||
def launchpad(self, obj=None):
|
||||
common.open_url_in_browser('self', 'https://translations.launchpad.net/deluge/trunk/+pots/deluge')
|
||||
|
||||
def add_torrent_clicked(self, obj=None):
|
||||
torrent = dialogs.show_file_open_dialog()
|
||||
|
Loading…
x
Reference in New Issue
Block a user