[openpgp-applet] 14/42: Gtk3: prevent menu to be destroyed after popup

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 913921b2f6300f828523602cbc2dfce40d2b3950
Author: Clément Hermann (nodens) <nodens at nodens.org>
Date:   Mon Oct 5 16:26:00 2015 +0200

    Gtk3: prevent menu to be destroyed after popup
    
    in Gtk3, $action_menu is destroyed just after popup, and so unusable.
    using a global var to prevent this (creating the var outside the main
    subrouting and passing it to button_press_event would work, too).
    
    See http://comments.gmane.org/gmane.comp.gnome.gtk+.perl/13337
---
 bin/openpgp-applet | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bin/openpgp-applet b/bin/openpgp-applet
index 7d1649e..b0b00d7 100755
--- a/bin/openpgp-applet
+++ b/bin/openpgp-applet
@@ -209,7 +209,7 @@ Please see README and LICENSE files distributed along this program for detail.
         my $ticon = shift;
         my $event = shift;
         return unless $event->button == 1;
-        my $action_menu = build_action_menu();
+        our $action_menu = build_action_menu();
         $action_menu->show_all;
         $action_menu->popup(undef, undef, undef, undef, $event->button, $event->time);
     });

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