Changeset 9683
- Timestamp:
- 12/14/09 01:54:50 (2 years ago)
- Location:
- trunk/Padre/lib/Padre
- Files:
-
- 5 edited
-
Action.pm (modified) (1 diff)
-
Document/Perl.pm (modified) (2 diffs)
-
Wx/Dialog/HelpSearch.pm (modified) (3 diffs)
-
Wx/Dialog/SessionManager.pm (modified) (2 diffs)
-
Wx/Main.pm (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Padre/lib/Padre/Action.pm
r9644 r9683 112 112 113 113 my $shortcuts = Padre->ide->{shortcuts}; 114 if ( defined($shortcuts->{$shortcut})) {114 if ( defined( $shortcuts->{$shortcut} ) ) { 115 115 warn "Found a duplicate shortcut '$shortcut' with " . $shortcuts->{$shortcut}->name . " for '$name'\n"; 116 116 } else { -
trunk/Padre/lib/Padre/Document/Perl.pm
r9649 r9683 1729 1729 1730 1730 sub guess_filename_to_open { 1731 my ( $self, $text) =@_;1731 my ( $self, $text ) = @_; 1732 1732 1733 1733 my $module = $text; … … 1769 1769 } 1770 1770 } 1771 1771 1772 1772 return @files; 1773 1773 } -
trunk/Padre/lib/Padre/Wx/Dialog/HelpSearch.pm
r9655 r9683 71 71 eval { ( $html, $location ) = $self->_help_provider->help_render($topic); }; 72 72 if ($@) { 73 $self->_main->error( Wx::gettext("Error while calling help_render: ") . $@);73 $self->_main->error( Wx::gettext("Error while calling help_render: ") . $@ ); 74 74 return; 75 75 } … … 284 284 eval { $self->_help_provider( $doc->get_help_provider ); }; 285 285 if ($@) { 286 $self->_main->error( Wx::gettext("Error while calling get_help_provider: ") . $@);286 $self->_main->error( Wx::gettext("Error while calling get_help_provider: ") . $@ ); 287 287 return; 288 288 } 289 if ( not $self->_help_provider) {290 $self->_main->error( Wx::gettext("Could not find a help provider for ") .291 Padre::MimeTypes->get_mime_type_name( $doc->get_mimetype ) );289 if ( not $self->_help_provider ) { 290 $self->_main->error( Wx::gettext("Could not find a help provider for ") 291 . Padre::MimeTypes->get_mime_type_name( $doc->get_mimetype ) ); 292 292 return; 293 293 } … … 297 297 eval { $self->_index( $self->_help_provider->help_list ); }; 298 298 if ($@) { 299 $self->_main->error( Wx::gettext("Error while calling help_list: ") . $@);299 $self->_main->error( Wx::gettext("Error while calling help_list: ") . $@ ); 300 300 return; 301 301 } -
trunk/Padre/lib/Padre/Wx/Dialog/SessionManager.pm
r9643 r9683 108 108 'session_autosave', 109 109 $self->{autosave}->GetValue ? 1 : 0 110 );110 ); 111 111 $config->write; 112 112 113 113 # Open session 114 114 my $main = $self->GetParent; 115 $main->open_session( $self->_current_session, $self->{autosave}->GetValue ? 1 :0 );115 $main->open_session( $self->_current_session, $self->{autosave}->GetValue ? 1 : 0 ); 116 116 $self->Destroy(); 117 117 } … … 258 258 Wx::gettext('Save session automatically'), 259 259 ); 260 $self->{autosave}->SetValue( $config->session_autosave ? 1 : 0);261 262 # Wx::Event::EVT_CHECKBOX(263 # $self,264 # $self->{autosave},265 # sub {260 $self->{autosave}->SetValue( $config->session_autosave ? 1 : 0 ); 261 262 # Wx::Event::EVT_CHECKBOX( 263 # $self, 264 # $self->{autosave}, 265 # sub { 266 266 # $_[0]->{find_text}->SetFocus; 267 # }268 # );267 # } 268 # ); 269 269 270 270 $hbox->Add( $self->{autosave}, 0, Wx::wxALL, 5 ); -
trunk/Padre/lib/Padre/Wx/Main.pm
r9666 r9683 3468 3468 ); 3469 3469 if (@$error) { 3470 $self->error( sprintf( Wx::gettext("Failed to create path '%s'"),$dir) );3470 $self->error( sprintf( Wx::gettext("Failed to create path '%s'"), $dir ) ); 3471 3471 return $self->on_save_as(@_); 3472 3472 }
Note: See TracChangeset
for help on using the changeset viewer.
