[openpgp-applet] 17/42: Gtk3: fix encrypt from clipboard. Also, now Gtk takes encoded text properly

Clement Hermann nodens at nodens.org
Wed Oct 26 16:47:51 UTC 2016


This is an automated email from the git hooks/post-receive script.

nodens-guest pushed a commit to branch master
in repository openpgp-applet.

commit 894aeb6d23f2ff20fa04f0dd2ffbb5e471487136
Author: Clément Hermann (nodens) <nodens at nodens.org>
Date:   Sat Oct 17 14:47:30 2015 +0200

    Gtk3: fix encrypt from clipboard. Also, now Gtk takes encoded text properly
---
 bin/openpgp-applet | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/bin/openpgp-applet b/bin/openpgp-applet
index b0b00d7..3fd26b7 100755
--- a/bin/openpgp-applet
+++ b/bin/openpgp-applet
@@ -323,12 +323,8 @@ sub set_clipboards_text {
     my $text = shift;
     my $encoded_text = $encoding->encode($text);
 
-    # FIXME-GTK3 - still true with gtk3 ?
-    # Note: according to the GTK documentation, the set_text method
-    # is supposed to need input encoded in UTF-8. But it seems like the Perl
-    # bindings encode it, and we need to pass a string of chars instead of bytes.
     foreach (all_clipboards()) {
-        $_->set_text($text);
+        $_->set_text($encoded_text,-1);
     }
     # FIXME-GTK3 - still true with gtk3 ?
     # GTK fails setting the primary selection above, so let's use xclip :/

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