Changeset 9617


Ignore:
Timestamp:
12/12/09 01:45:06 (2 years ago)
Author:
azawawi
Message:

Re-enabled toggle status bar on win32.

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

Legend:

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

    r9604 r9617  
    240240    # at the beginning and hide it in the timer, if it was not needed 
    241241    # TO DO: there might be better ways to fix that issue... 
    242     $statusbar->Show; 
     242    #$statusbar->Show; 
    243243    my $timer = Wx::Timer->new( $self, Padre::Wx::ID_TIMER_POSTINIT, ); 
    244244    Wx::Event::EVT_TIMER( 
     
    43434343    my $self = shift; 
    43444344 
    4345     # Status bar always shown on Windows 
    4346     return if Padre::Constant::WXWIN32; 
    4347  
    43484345    # Update the configuration 
    43494346    $self->config->set( 
     
    43614358    # Save configuration 
    43624359    $self->config->write; 
     4360 
     4361    # Refresh. This is needed to show/hide the status bar 
     4362    $self->aui->Update; 
    43634363 
    43644364    return; 
  • trunk/Padre/lib/Padre/Wx/Menu/View.pm

    r9605 r9617  
    103103    ); 
    104104 
    105     # On Windows disabling the status bar doesn't work, so don't allow it 
    106     unless (Padre::Constant::WXWIN32) { 
    107         $self->{statusbar} = $self->add_checked_menu_item( 
    108             $self, 
    109             name       => 'view.statusbar', 
    110             label      => Wx::gettext('Show StatusBar'), 
    111             menu_event => sub { 
    112                 $_[0]->on_toggle_statusbar( $_[1] ); 
    113             }, 
    114         ); 
    115     } 
     105    $self->{statusbar} = $self->add_checked_menu_item( 
     106        $self, 
     107        name       => 'view.statusbar', 
     108        label      => Wx::gettext('Show StatusBar'), 
     109        menu_event => sub { 
     110            $_[0]->on_toggle_statusbar( $_[1] ); 
     111        }, 
     112    ); 
    116113 
    117114    $self->{toolbar} = $self->add_checked_menu_item( 
     
    465462 
    466463    # Simple check state cases from configuration 
    467     unless (Padre::Constant::WXWIN32) { 
    468         $self->{statusbar}->Check( $config->main_statusbar ); 
    469     } 
     464    $self->{statusbar}->Check( $config->main_statusbar ); 
    470465 
    471466    $self->{lines}->Check( $config->editor_linenumbers ); 
Note: See TracChangeset for help on using the changeset viewer.