Changeset 9661
- Timestamp:
- 12/13/09 03:05:13 (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Padre-Plugin-Swarm/lib/Padre/Wx/Swarm/Chat.pm
r9650 r9661 107 107 } 108 108 109 sub plugin { Padre::Plugin::Swarm->instance }; 110 109 111 sub bottom { 110 112 $_[0]->GetParent; … … 116 118 117 119 sub gettext_label { 118 Wx::gettext(' Swarm -Chat');120 Wx::gettext('Chat'); 119 121 } 120 122 … … 136 138 my $bottom = $self->bottom; 137 139 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 139 145 $self->Show; 140 146 $bottom->SetSelection($position); … … 232 238 sub accept_promote { 233 239 my ($self,$message) = @_; 234 nextunless $message->{service} =~ m/chat/i;240 return unless $message->{service} =~ m/chat/i; 235 241 236 242 my $text = sprintf '%s promotes a chat service', $message->from; … … 254 260 $self->write_user_styled( $message->from , $message->from ); 255 261 $self->write_unstyled( ' ran' . $message->{filename} 256 . ' in YOUR editor but failed!! ' . $@ );262 . ' in YOUR editor but failed!! ' . $@. "\n" ); 257 263 } 258 264 else { … … 260 266 $self->write_unstyled( ' ran ' . $message->{filename} 261 267 . ' in YOUR editor successfully, returning ' 262 . join ', ' , @result 268 . join (', ' , @result) 269 . "\n" 263 270 ); 264 271
Note: See TracChangeset
for help on using the changeset viewer.
