Changeset 490


Ignore:
Timestamp:
10/26/08 07:16:49 (3 years ago)
Author:
szabgab
Message:

use Show/Hide? instead if Freeze/Thaw? and do it on the correct window

Location:
trunk/lib/Padre/Wx
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/Padre/Wx/MainWindow.pm

    r489 r490  
    215215 
    216216            my $output = $_[0]->{menu}->{view_output}->IsChecked; 
    217             # Firs we show the output window and then hide it if necessary 
     217            # First we show the output window and then hide it if necessary 
    218218            # in order to avoide some weird visual artifacts (empty square at 
    219219            # top left part of the whole application) 
    220220            # TODO maybe some users want to make sure the output window is always 
    221221            # off at startup. 
    222             unless ( Padre::Util::WIN32 ) { 
    223                 $_[0]->show_output(1); 
    224             } 
     222            $_[0]->show_output(1); 
    225223            $_[0]->show_output($output) if not $output; 
    226224            }, 
     
    11381136    my $on   = shift; 
    11391137 
    1140 #   return if Padre::Util::WIN32 and not $on; 
    1141  
    11421138    my $config = Padre->ide->config; 
    11431139    $config->{main_output} = $on; 
     
    11511147            -100, 
    11521148        ); 
    1153         $self->{output}->Thaw; 
     1149        $self->{output}->Show; 
    11541150    } 
    11551151    if ( $self->{main_panel}->IsSplit and not $on ) { 
    11561152        $self->{main_panel}->Unsplit; 
    1157         $self->Freeze; 
     1153        $self->{output}->Hide; 
    11581154    } 
    11591155    return; 
  • trunk/lib/Padre/Wx/Output.pm

    r484 r490  
    2424        Wx::wxTE_READONLY | Wx::wxTE_MULTILINE | Wx::wxTE_DONTWRAP | Wx::wxNO_FULL_REPAINT_ON_RESIZE, 
    2525    ); 
    26     $self->Freeze; 
    2726 
    2827    # Do custom startup stuff here 
Note: See TracChangeset for help on using the changeset viewer.