Changeset 7251 for trunk/Padre-Plugin-SpellCheck
- Timestamp:
- 08/16/09 02:07:42 (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Padre-Plugin-SpellCheck/lib/Padre/Plugin/SpellCheck.pm
r5373 r7251 34 34 # plugin icon 35 35 sub plugin_icon { 36 my $self = shift; 37 36 38 # find resource path 37 39 my $pkgpath = find_installed(__PACKAGE__); 38 40 my (undef, $dirname, undef) = fileparse($pkgpath); 39 my $iconpath = catfile( _sharedir(), 'icons', 'spellcheck.png');41 my $iconpath = catfile( $self->plugin_directory_share, 'icons', 'spellcheck.png'); 40 42 41 43 # create and return icon 42 44 return Wx::Bitmap->new( $iconpath, Wx::wxBITMAP_TYPE_PNG ); 43 }44 45 # directory where to find the translations46 sub plugin_locale_directory {47 return catdir( _sharedir(), 'locale' );48 45 } 49 46 … … 117 114 118 115 119 # -- private methods120 121 #122 # my $dir = $self->_sharedir;123 #124 # return the private share directory where the module resources are stored.125 #126 sub _sharedir {127 # find resource path128 my $pkgpath = find_installed(__PACKAGE__);129 my (undef, $dirname, undef) = fileparse($pkgpath);130 return catdir( $dirname, 'SpellCheck', 'share' );131 }132 133 116 1; 134 117 __END__ … … 178 161 179 162 =item plugin_icon() 180 181 =item plugin_locale_directory()182 163 183 164 =item plugin_name()
Note: See TracChangeset
for help on using the changeset viewer.
