[Padre-dev] [Padre-commit] rev 883 - in trunk/lib/Padre: . Wx

Gabor Szabo szabgab at gmail.com
Tue Nov 11 03:03:39 PST 2008


On Tue, Nov 11, 2008 at 12:48 PM,  <svn at perlide.org> wrote:
> Author: fayland
> Date: 2008-11-11 02:48:59 -0800 (Tue, 11 Nov 2008)
> New Revision: 883
>
> Modified:
>   trunk/lib/Padre/Config.pm
>   trunk/lib/Padre/Wx/MainWindow.pm
>   trunk/lib/Padre/Wx/Menu.pm
> Log:
> Show/hide the list of subs window
>
> Modified: trunk/lib/Padre/Config.pm
> ===================================================================
> --- trunk/lib/Padre/Config.pm   2008-11-11 10:40:47 UTC (rev 882)
> +++ trunk/lib/Padre/Config.pm   2008-11-11 10:48:59 UTC (rev 883)
> @@ -113,6 +113,7 @@
>                # Look and feel preferences
>                main_statusbar            => 1,
>                main_output               => 0,
> +               main_rightbar             => 1,
>                editor_use_tabs           => 1,
>                editor_tabwidth           => 4,
>                editor_linenumbers        => 0,


this breaks the corresponding test. (02-new.t), please don't forget to
update it too.


>
> Modified: trunk/lib/Padre/Wx/MainWindow.pm
> ===================================================================
> --- trunk/lib/Padre/Wx/MainWindow.pm    2008-11-11 10:40:47 UTC (rev 882)
> +++ trunk/lib/Padre/Wx/MainWindow.pm    2008-11-11 10:48:59 UTC (rev 883)
> @@ -193,6 +193,15 @@
>                $event->Skip();
>                return;
>        } );
> +
> +       # remember the last time we show them or not
> +       unless ( $self->{menu}->{view_output}->IsChecked ) {
> +               $self->manager->GetPane('output')->Hide();
> +       }
> +       if ( $config->{experimental} and not $self->{menu}->{view_functions}->IsChecked ) {
> +               $self->manager->GetPane('rightbar')->Hide();
> +       }
> +

AFAIK once it is working we can remove the experimental flag.

Gabor


More information about the Padre-dev mailing list