id,summary,reporter,owner,description,type,status,priority,milestone,component,version,resolution,keywords,cc
1448,Padre::Plugin::My Right-clicking in Editor window crashes Padre (instead of showing context menu),Manfred Jebram,,"When I press the second mouse button in a Padre editor window/pane,
Padre crashes (With an error message complaining about
event_on_context_menu not found).  I can reproduce this under
Linux (with perl 5.16.0) and MS Windows (Older Strawberry perl 5.10.0,
the old ""Almost Six"" release with updated Padre).


{{{


Padre version info:
                   Padre 0.96
Core...
                  osname linux
                archname i486-linux-gnu-thread-multi
            Distribution Ubuntu 9.10 
                  Kernel 2.6.22.18-co-0.7.4
                    Perl 5.16.0
                 Threads 10
                     RAM 252.3MB
Wx...
                      Wx 0.9908
               WxWidgets 2.8.10
                 unicode 1
        Alien::wxWidgets 0.59
 Wx::Perl::ProcessStream 0.32
           Wx::Scintilla 0.3801
Other...
                     PPI 1.215
           Debug::Client 0.20
                  Config /home/mj/.local/share/.padre
}}}

Same for Strawberry/Windows:
{{{
                   Padre 0.96
Core...
                  osname MSWin32
                archname MSWin32-x86-multi-thread
                    Perl 5.10.0
                 Threads 9
                     RAM 167.2MB
Wx...
                      Wx 0.9909
               WxWidgets 2.8.10
                 unicode 1
        Alien::wxWidgets 0.51
 Wx::Perl::ProcessStream 0.29
           Wx::Scintilla 0.3801
Other...
                     PPI 1.213
           Debug::Client 0.20
                  Config D:\Documents and Settings\Manfred Jebram\Local Settings\Application Data\Perl\Padre
}}}

The crash(es) happen in Padre::PluginManager::on_context_menu


{{{
sub on_context_menu {
	my $self = shift;

	foreach my $handle ( $self->handles ) {
		next unless $handle->can_context;
		foreach my $handle ( $self->handles ) {
			$handle->plugin->event_on_context_menu(@_);
		}
	}

	return ();
}
}}}

(The inner loop looks unneeded to me, expect for the
""event_on_context_menu"" invocation.  But perhaps I don't understand.)
bowtie has suggested this might be an issue with
outdated Padre::Plugin::* -Modules.
I have unchanged copies of:
Padre::Plugin::My 0.96
Popularity Contest 0.96
Padre::Plugin::Git 0.03
Padre Devolper Tools 0.96 (?)
Under Strawberry, I also have Padre::Plugin::PerlCritic 0.12 installed.

Also see: http://paste.scsys.co.uk/205431

",defect,closed,major,,plugins,0.96,fixed,,
