Changeset 5636


Ignore:
Timestamp:
06/26/09 21:20:17 (3 years ago)
Author:
azawawi
Message:

[Padre] Removed cast_to_icon to prevent weird error.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Padre/lib/Padre/Wx/Icon.pm

    r5600 r5636  
    7676        ) . $pref{ext}; 
    7777        next unless -f $file; 
    78         return cast_to_icon( 
    79             Wx::Bitmap->new( $file, Wx::wxBITMAP_TYPE_PNG ) 
    80         ); 
     78        return Wx::Bitmap->new( $file, Wx::wxBITMAP_TYPE_PNG ); 
    8179    } 
    8280 
     
    102100} 
    103101 
    104 sub cast_to_icon{ 
    105     my $icon = Wx::Icon->new; 
    106     $icon->CopyFromBitmap( shift ); 
    107     return $icon; 
    108 } 
    109  
    1101021; 
    111103 
Note: See TracChangeset for help on using the changeset viewer.