Changeset 11043


Ignore:
Timestamp:
03/10/10 07:47:23 (2 years ago)
Author:
zenogantner
Message:

search: use main->info instead of ->error for no matches
replace: use main->info instead of ->message (so that users can decide whether to see it in a window or in the status bar)

Location:
trunk/Padre/lib/Padre
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Padre/lib/Padre/Search.pm

    r10997 r11043  
    191191        return $self->editor_count_all(@_); 
    192192    } 
    193     die("Missing or invalid ccontent object to search in"); 
     193    die("Missing or invalid content object to search in"); 
    194194} 
    195195 
  • trunk/Padre/lib/Padre/Wx/Dialog/Find.pm

    r10997 r11043  
    328328        $self->Hide; 
    329329    } elsif ( not $Result ) { 
    330         $main->error( 
     330        $main->info( 
    331331            Wx::gettext('No matches found'), 
    332332            Wx::gettext('Search') 
  • trunk/Padre/lib/Padre/Wx/Dialog/Replace.pm

    r10997 r11043  
    572572    my $changes = $main->replace_all($search); 
    573573    if ($changes) { 
    574         $main->message( 
     574        $main->info( 
    575575            sprintf( Wx::gettext('Replaced %d matches'), $changes ), 
    576576            Wx::gettext('Search and Replace') 
    577577        ); 
    578578    } else { 
    579         $main->message( 
     579        $main->info( 
    580580            Wx::gettext('No matches found'), 
    581581            Wx::gettext('Search and Replace'), 
Note: See TracChangeset for help on using the changeset viewer.