Changeset 5355


Ignore:
Timestamp:
06/19/09 07:08:48 (3 years ago)
Author:
azawawi
Message:

[Perl 6] Added a bigger Perl 6 Camelia icon in the about box.

Location:
trunk/Padre-Plugin-Perl6/lib/Padre/Plugin
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Padre-Plugin-Perl6/lib/Padre/Plugin/Perl6.pm

    r5353 r5355  
    4747# plugin icon 
    4848sub plugin_icon { 
    49     # find resource path 
    50     my $iconpath = File::Spec->catfile( _sharedir(), 'icons', 'camelia.png'); 
    51  
    52     # create and return icon 
    53     return Wx::Bitmap->new( $iconpath, Wx::wxBITMAP_TYPE_PNG ); 
     49    # find resource path 
     50    my $iconpath = File::Spec->catfile( _sharedir(), 'icons', 'camelia.png'); 
     51 
     52    # create and return icon 
     53    return Wx::Bitmap->new( $iconpath, Wx::wxBITMAP_TYPE_PNG ); 
    5454} 
    5555 
     
    225225 
    226226sub show_about { 
    227     my ($main) = @_; 
     227    my $main = shift; 
    228228 
    229229    require Syntax::Highlight::Perl6; 
     
    236236    ); 
    237237    $about->SetVersion($VERSION); 
     238 
     239    # create and return the camelia icon 
     240    my $camelia_path = File::Spec->catfile( _sharedir(), 'icons', 'camelia-big.png'); 
     241    my $camelia_bmp = Wx::Bitmap->new( $camelia_path, Wx::wxBITMAP_TYPE_PNG ); 
     242    my $camelia_icon = Wx::Icon->new(); 
     243    $camelia_icon->CopyFromBitmap($camelia_bmp); 
     244    $about->SetIcon($camelia_icon); 
     245     
    238246    Wx::AboutBox( $about ); 
    239247    return; 
Note: See TracChangeset for help on using the changeset viewer.