Changeset 9583

Show
Ignore:
Timestamp:
12/09/09 19:07:04 (9 months ago)
Author:
garu
Message:

"short names" checkbox only appear if Cat version <= 5.80013

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/Padre-Plugin-Catalyst/lib/Padre/Plugin/Catalyst/NewApp.pm

    r9531 r9583  
    4747                        [ 'Wx::DirPickerCtrl',   '_directory_', '',   _T('Pick parent directory')], 
    4848                ], 
     49        ); 
     50        require Catalyst; 
     51        if ($Catalyst::VERSION < 5.80013) { 
     52                push @layout, 
    4953                [ 
    5054                        [ 'Wx::CheckBox', '_short_', _T('short names'), 0 ], 
    51                 ], 
     55                ]; 
     56        } 
     57        push @layout, 
    5258                [ 
    5359                        [ 'Wx::Button',     '_ok_',           Wx::wxID_OK     ], 
    5460                        [ 'Wx::Button',     '_cancel_',       Wx::wxID_CANCEL ], 
    55                 ], 
    56         ); 
     61                ]; 
     62 
    5763        return \@layout; 
    5864}