Changeset 5355
- Timestamp:
- 06/19/09 07:08:48 (3 years ago)
- Location:
- trunk/Padre-Plugin-Perl6/lib/Padre/Plugin
- Files:
-
- 1 added
- 1 edited
-
Perl6.pm (modified) (3 diffs)
-
Perl6/share/icons/camelia-big.png (added)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Padre-Plugin-Perl6/lib/Padre/Plugin/Perl6.pm
r5353 r5355 47 47 # plugin icon 48 48 sub plugin_icon { 49 # find resource path50 my $iconpath = File::Spec->catfile( _sharedir(), 'icons', 'camelia.png');51 52 # create and return icon53 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 ); 54 54 } 55 55 … … 225 225 226 226 sub show_about { 227 my ($main) = @_;227 my $main = shift; 228 228 229 229 require Syntax::Highlight::Perl6; … … 236 236 ); 237 237 $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 238 246 Wx::AboutBox( $about ); 239 247 return;
Note: See TracChangeset
for help on using the changeset viewer.
