[SCM] Packaging of padre perl editor branch, master, updated. debian/0.94+dfsg1-1-5-g8a7bd21

Dominique Dumont dod at debian.org
Thu Apr 19 13:22:07 UTC 2012


The following commit has been merged in the master branch:
commit 7592cba87e187daaadd98a4ff6d6e2189f8bbf39
Author: Dominique Dumont <dod at debian.org>
Date:   Thu Apr 19 14:20:39 2012 +0200

    patch to fix crash with right-click or context menu

diff --git a/debian/patches/hack-missing-context-menu b/debian/patches/hack-missing-context-menu
new file mode 100644
index 0000000..64f7752
--- /dev/null
+++ b/debian/patches/hack-missing-context-menu
@@ -0,0 +1,20 @@
+Description: Hack missing context menu
+ Avoid Padre creash when context menus are used (either
+ right-click or ctrl-/).
+ .
+ As upstreas has already heavily modified this area (and
+ fixed the issue), this patch must not be forwarded upstream.
+Author: dod at debian.org
+Applied-Upstream: don't
+--- a/lib/Padre/PluginManager.pm
++++ b/lib/Padre/PluginManager.pm
+@@ -952,7 +952,8 @@
+ 	foreach my $handle ( $self->handles ) {
+ 		next unless $handle->can_context;
+ 		foreach my $handle ( $self->handles ) {
+-			$handle->plugin->event_on_context_menu(@_);
++			$handle->plugin->event_on_context_menu(@_) 
++				if defined $handle->plugin and $handle->plugin->can('event_on_context_menu');
+ 		}
+ 	}
+ 
diff --git a/debian/patches/series b/debian/patches/series
index 275cd4c..1bda8aa 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,3 @@
 disable-tcp-server.patch
 example-interpreter.patch
+hack-missing-context-menu

-- 
Packaging of padre perl editor



More information about the Pkg-perl-cvs-commits mailing list