[openpgp-applet] 54/61: Add menu entry to open text editor
Clement Hermann
nodens at nodens.org
Tue Aug 18 18:51:46 UTC 2015
This is an automated email from the git hooks/post-receive script.
nodens-guest pushed a commit to annotated tag OpenPGP_Applet-0.9
in repository openpgp-applet.
commit d2ef02dfa0772ef4dfb6bbfde5f22a878bc24cbe
Author: Clément Hermann (nodens) <nodens at nodens.org>
Date: Thu Mar 19 10:53:08 2015 +0100
Add menu entry to open text editor
Patch from IvanBliminse (slightly adapted)
will-fix: #9069
---
bin/openpgp-applet | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/bin/openpgp-applet b/bin/openpgp-applet
index 5598080..974eccb 100755
--- a/bin/openpgp-applet
+++ b/bin/openpgp-applet
@@ -248,6 +248,10 @@ sub build_action_menu {
$mmanage->signal_connect('activate' => sub { manage_keys(); });
$action_menu->append($mmanage);
+ my $mtexteditor = Gtk2::MenuItem->new_with_mnemonic($encoding->decode(__("_Open Text Editor")));
+ $mtexteditor->signal_connect('activate' => sub { open_text_editor(); });
+ $action_menu->append($mtexteditor);
+
return $action_menu;
}
@@ -255,6 +259,10 @@ sub manage_keys {
system("seahorse &");
}
+sub open_text_editor {
+ system("gnome-text-editor &");
+}
+
sub all_text_types {
map { $_->{type} } @pgp_headers;
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/openpgp-applet.git
More information about the Pkg-perl-cvs-commits
mailing list