Changeset 479
- Timestamp:
- 10/26/08 03:45:00 (3 years ago)
- Location:
- trunk/lib/Padre/Wx
- Files:
-
- 2 edited
-
Editor.pm (modified) (1 diff)
-
MainWindow.pm (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/Padre/Wx/Editor.pm
r472 r479 146 146 my ($self, $event) = @_; 147 147 148 return if $self-> {_in_setup_editor};148 return if $self->no_refresh; 149 149 my $config = Padre->ide->config; 150 150 return if not $config->{editor_calltips}; -
trunk/lib/Padre/Wx/MainWindow.pm
r478 r479 255 255 256 256 257 258 259 260 257 ##################################################################### 261 258 # Refresh Methods 262 259 260 sub no_refresh { 261 $_[0]->{_no_refresh}; 262 } 263 263 264 sub refresh_all { 264 265 my $self = shift; 265 return if $self->{_in_setup_editor}; 266 267 return if $self->no_refresh; 266 268 my $doc = $self->selected_document; 267 269 $self->refresh_menu($doc); … … 284 286 my ($self) = @_; 285 287 286 return if $self->{_in_setup_editor}; 287 288 return if $self->no_refresh; 288 289 my $pageid = $self->{notebook}->GetSelection(); 289 290 if (not defined $pageid or $pageid == -1) { … … 320 321 my ($self, $doc) = @_; 321 322 322 return if $self-> {_in_setup_editor};323 return if $self->no_refresh; 323 324 324 325 $doc ||= $self->selected_document; … … 725 726 my ($self, $file) = @_; 726 727 727 local $self->{_ in_setup_editor} = 1;728 local $self->{_no_refresh} = 1; 728 729 729 730 # Flush old stuff … … 748 749 $editor->padre_setup; 749 750 750 $self->{_ in_setup_editor} = 0;751 $self->{_no_refresh} = 0; 751 752 $self->refresh_status; 752 753 $self->refresh_methods( $editor->{Document} ); … … 977 978 978 979 my $doc = $self->selected_document or return; 979 local $self->{_ in_setup_editor} = 1;980 local $self->{_no_refresh} = 1; 980 981 981 982
Note: See TracChangeset
for help on using the changeset viewer.
