add 'help translate this app' to help menu

This commit is contained in:
Marcos Pinto 2007-07-11 00:43:16 +00:00
parent cbf1c5c9ab
commit 9dfbe53ed6
2 changed files with 13 additions and 0 deletions

View File

@ -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>

View File

@ -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()