Changeset 9661


Ignore:
Timestamp:
12/13/09 03:05:13 (2 years ago)
Author:
submersible_toaster
Message:

window dressing and label changes. fix warning due to misplaced next

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Padre-Plugin-Swarm/lib/Padre/Wx/Swarm/Chat.pm

    r9650 r9661  
    107107} 
    108108 
     109sub plugin { Padre::Plugin::Swarm->instance }; 
     110 
    109111sub bottom { 
    110112    $_[0]->GetParent; 
     
    116118 
    117119sub gettext_label { 
    118     Wx::gettext('Swarm - Chat'); 
     120    Wx::gettext('Chat'); 
    119121} 
    120122 
     
    136138    my $bottom   = $self->bottom; 
    137139    my $position = $bottom->GetPageCount; 
    138     $bottom->InsertPage( $position, $self, gettext_label(), 0 ); 
     140    my $pos = $bottom->InsertPage( $position, $self, gettext_label(), 0 ); 
     141 
     142    my $icon = $self->plugin->plugin_icon;   
     143    $bottom->SetPageBitmap($pos, $icon ); 
     144     
    139145    $self->Show; 
    140146    $bottom->SetSelection($position); 
     
    232238sub accept_promote { 
    233239    my ($self,$message) = @_; 
    234     next unless $message->{service} =~ m/chat/i; 
     240    return unless $message->{service} =~ m/chat/i; 
    235241     
    236242    my $text = sprintf '%s promotes a chat service', $message->from; 
     
    254260        $self->write_user_styled( $message->from , $message->from ); 
    255261        $self->write_unstyled( ' ran' . $message->{filename} 
    256             . ' in YOUR editor but failed!! ' . $@ ); 
     262            . ' in YOUR editor but failed!! ' . $@. "\n" ); 
    257263    } 
    258264    else { 
     
    260266        $self->write_unstyled( ' ran ' . $message->{filename} 
    261267            . ' in YOUR editor successfully, returning ' 
    262             . join ', ' , @result 
     268            . join (', ' , @result) 
     269            . "\n" 
    263270        ); 
    264271         
Note: See TracChangeset for help on using the changeset viewer.