Hi,

It's a Wx 0.99 bug.

The fix isn't trivial ( for me at least  ) and I won't have the 
opportunity to start figuring it out for a couple of days.

The only possible hacky workaround would be something like

.....

my $size;
eval {
   $size = Wx::Button::GetDefaultSize();
};
if($@) {
   my $tempbutton = Wx::Button->new($dialog, -1, 'temp');
   $size = $tempbutton->GetDefaultSize();
   $tempbutton->Destroy;
}

.....

but I'm not 100% sure if the $tempbutton->Destroy will work as expected.

You would also probably want to restructure a little so that you only 
query the default size once.

  Wx 0.9901 sometime soonish.


Mark



On 03/06/2011 12:06, Peter Lavender wrote:
> Hi everyone,
>
> I won't branch Padre yet, this is what happens when you Click on
>
> File->New->Perl Distribution & Perl Distribution (New)
>
>
>
>
> Usage: Wx::Button::GetDefaultSize(THIS) at
> /home/pete/Programming/Perl/Padre/trunk/Padre/lib/Padre/Wx/Dialog.pm
> line 461.
> Perl exited with active threads:
> 3 running and unjoined
> 0 finished and unjoined
> 0 running and detached
>
>
>
> Thanks to bowtie for pointing this out..
>
> It's either comment them out of the menu for the next release or fix it.
>
> :)
>
> Peter.
>
>
>
>
> _______________________________________________
> Padre-dev mailing list
> Padre-dev@perlide.org
> http://mail.perlide.org/mailman/listinfo/padre-dev

_______________________________________________
Padre-dev mailing list
Padre-dev@perlide.org
http://mail.perlide.org/mailman/listinfo/padre-dev

Reply via email to