Changeset 12391


Ignore:
Timestamp:
08/29/10 09:53:21 (18 months ago)
Author:
zenogantner
Message:

more clean-up

Location:
trunk/Padre
Files:
4 edited

Legend:

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

    r12257 r12391  
    4545    accessors => { 
    4646        actions     => 'actions', 
     47        shortcuts   => 'shortcuts', 
    4748        instance_id => 'instance_id', 
    4849    }, 
     
    134135    $self->{config} = Padre::Config->read; 
    135136 
    136     # Actions registry 
    137     my %actions = (); 
    138     $self->actions( \%actions ); 
     137    # Actions and keyboard shortcuts registries 
     138    $self->actions(   {} ); 
     139    $self->shortcuts( {} ); 
    139140 
    140141    # Load a few more bits and pieces now we know 
  • trunk/Padre/lib/Padre/Wx/Action.pm

    r12389 r12391  
    125125        } 
    126126 
    127         $ide->{shortcuts} = {} if not exists $ide->{shortcuts}; 
    128         my $shortcuts = $ide->{shortcuts}; 
     127        my $shortcuts = $ide->shortcuts; 
    129128        if ( exists $shortcuts->{$shortcut} ) { 
    130129            warn "Found a duplicate shortcut '$shortcut' with " . $shortcuts->{$shortcut}->name . " for '$name'\n"; 
  • trunk/Padre/lib/Padre/Wx/Dialog/KeyBindings.pm

    r12390 r12391  
    321321    return if $shortcut eq ''; 
    322322 
    323     my $shortcuts = Padre->ide->{shortcuts}; 
     323    my $shortcuts = Padre->ide->shortcuts; 
    324324    if ( exists $shortcuts->{$shortcut} ) { 
    325         warn "Found a duplicate shortcut '$shortcut' with " . $shortcuts->{$shortcut}->name . " for '$name'\n"; 
     325        warn "Found a duplicate shortcut: '$shortcut' for " . $shortcuts->{$shortcut}->name . "\n"; 
    326326 
    327327        # TODO instead of a warning, offer to overwrite the old shortcut. 
  • trunk/Padre/t/06-utils.t

    r11931 r12391  
    5555use Padre::Wx::Action; 
    5656use Padre::Wx::ActionLibrary; 
    57 sub Padre::ide { return bless { shortcuts => {} }, 'Padre::IDE'; } 
     57sub Padre::ide { return bless {}, 'Padre::IDE'; } 
    5858sub Padre::IDE::actions { return {} } 
    5959sub Padre::IDE::config { return bless {}, 'Padre::Config' } 
Note: See TracChangeset for help on using the changeset viewer.