From 9dfbe53ed6e7ab30e4812764067eef67a15509a7 Mon Sep 17 00:00:00 2001 From: Marcos Pinto Date: Wed, 11 Jul 2007 00:43:16 +0000 Subject: [PATCH] add 'help translate this app' to help menu --- glade/delugegtk.glade | 10 ++++++++++ src/interface.py | 3 +++ 2 files changed, 13 insertions(+) diff --git a/glade/delugegtk.glade b/glade/delugegtk.glade index 9d0b0ac6a..e3aa9fec1 100644 --- a/glade/delugegtk.glade +++ b/glade/delugegtk.glade @@ -415,6 +415,16 @@ + + + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + Help translate this application + Help translate this application + True + + + diff --git a/src/interface.py b/src/interface.py index b0bcdd54f..b1d1dbdc1 100644 --- a/src/interface.py +++ b/src/interface.py @@ -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()