Ignore:
Timestamp:
12/17/09 22:32:25 (2 years ago)
Author:
azawawi
Message:

Updates Changes and performed a Perl tidy

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Padre/lib/Padre/Wx/Dialog/OpenResource.pm

    r9763 r9764  
    320320            my $num_selected = scalar @matches; 
    321321            if ( $num_selected == 1 ) { 
    322                 $self->_status_text->ChangeValue( $self->_path($self->_matches_list->GetClientData( $matches[0])) ); 
     322                $self->_status_text->ChangeValue( $self->_path( $self->_matches_list->GetClientData( $matches[0] ) ) ); 
    323323                $self->_copy_button->Enable(1); 
    324324            } elsif ( $num_selected > 1 ) { 
     
    456456    my @recent_files = (); 
    457457    foreach my $e (@$recently_used) { 
    458         push @recent_files,  $self->_path($e->value); 
     458        push @recent_files, $self->_path( $e->value ); 
    459459    } 
    460460    @recent_files = sort { File::Basename::fileparse($a) cmp File::Basename::fileparse($b) } @recent_files; 
     
    516516    if ( $pos > 0 ) { 
    517517        $self->_matches_list->Select(0); 
    518         $self->_status_text->ChangeValue( $self->_path($self->_matches_list->GetClientData(0)) ); 
     518        $self->_status_text->ChangeValue( $self->_path( $self->_matches_list->GetClientData(0) ) ); 
    519519        $self->_status_text->Enable(1); 
    520520        $self->_copy_button->Enable(1); 
     
    534534# 
    535535sub _path { 
    536     my ($self, $path) = @_; 
    537     if(Padre::Constant::WIN32) { 
     536    my ( $self, $path ) = @_; 
     537    if (Padre::Constant::WIN32) { 
    538538        $path =~ s/\//\\/g; 
    539539    } 
Note: See TracChangeset for help on using the changeset viewer.