diff -ru Padre-0.15-8UVvmY/lib/Padre/Wx/MainWindow.pm myPadre/lib/Padre/Wx/MainWindow.pm
|
old
|
new
|
|
| 118 | 118 | ); |
| 119 | 119 | |
| 120 | 120 | # Create the main notebook for the documents |
| 121 | | $self->{notebook} = Wx::Notebook->new( |
| | 121 | $self->{notebook} = Wx::AuiNotebook->new( |
| 122 | 122 | $self->{upper_panel}, |
| 123 | 123 | -1, |
| 124 | 124 | Wx::wxDefaultPosition, |
| 125 | 125 | Wx::wxDefaultSize, |
| 126 | | Wx::wxNO_FULL_REPAINT_ON_RESIZE | Wx::wxCLIP_CHILDREN, |
| | 126 | Wx::wxNO_FULL_REPAINT_ON_RESIZE | Wx::wxCLIP_CHILDREN | Wx::wxAUI_NB_DEFAULT_STYLE, |
| 127 | 127 | ); |
| 128 | 128 | Wx::Event::EVT_NOTEBOOK_PAGE_CHANGED( |
| 129 | 129 | $self, |
| … |
… |
|
| 825 | 825 | sub create_tab { |
| 826 | 826 | my ($self, $editor, $file, $title) = @_; |
| 827 | 827 | |
| 828 | | $self->{notebook}->AddPage($editor, $title, 1); # TODO add closing x |
| | 828 | $self->{notebook}->AddPage($editor, $title, 1); |
| 829 | 829 | $editor->SetFocus; |
| 830 | 830 | |
| 831 | 831 | my $id = $self->{notebook}->GetSelection; |
diff -ru Padre-0.15-8UVvmY/lib/Padre/Wx/ToolBar.pm myPadre/lib/Padre/Wx/ToolBar.pm
|
old
|
new
|
|
| 32 | 32 | #$self->AddTool( 1000, '', Padre::Wx::tango(catfile('actions', 'bookmark-new.png')), 'Bookmark' ); |
| 33 | 33 | #Wx::Event::EVT_TOOL($parent, 1000, sub { Padre::Wx::Dialog::Bookmarks->set_bookmark($_[0]) } ); |
| 34 | 34 | |
| | 35 | Wx::Event::EVT_TOOL( $parent, Wx::wxID_NEW, sub { $_[0]->setup_editor; return; } ); |
| | 36 | |
| 35 | 37 | return $self; |
| 36 | 38 | } |
| 37 | 39 | |
| … |
… |
|
| 39 | 41 | my $self = shift; |
| 40 | 42 | my $doc = shift; |
| 41 | 43 | |
| | 44 | $self->EnableTool( Wx::wxID_NEW, 1 ); |
| | 45 | |
| 42 | 46 | my $enabled = !! ( $doc and $doc->is_modified ); |
| 43 | 47 | $self->EnableTool( Wx::wxID_SAVE, $enabled ); |
| 44 | 48 | |
diff -ru Padre-0.15-8UVvmY/lib/Padre/Wx.pm myPadre/lib/Padre/Wx.pm
|
old
|
new
|
|
| 14 | 14 | # use them without braces. |
| 15 | 15 | use Wx ':everything'; |
| 16 | 16 | use Wx::Event ':everything'; |
| | 17 | use Wx::AUI; |
| 17 | 18 | |
| 18 | 19 | our $VERSION = '0.15'; |