Changeset 12391
- Timestamp:
- 08/29/10 09:53:21 (18 months ago)
- Location:
- trunk/Padre
- Files:
-
- 4 edited
-
lib/Padre.pm (modified) (2 diffs)
-
lib/Padre/Wx/Action.pm (modified) (1 diff)
-
lib/Padre/Wx/Dialog/KeyBindings.pm (modified) (1 diff)
-
t/06-utils.t (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Padre/lib/Padre.pm
r12257 r12391 45 45 accessors => { 46 46 actions => 'actions', 47 shortcuts => 'shortcuts', 47 48 instance_id => 'instance_id', 48 49 }, … … 134 135 $self->{config} = Padre::Config->read; 135 136 136 # Actions registry137 my %actions = ();138 $self-> actions( \%actions);137 # Actions and keyboard shortcuts registries 138 $self->actions( {} ); 139 $self->shortcuts( {} ); 139 140 140 141 # Load a few more bits and pieces now we know -
trunk/Padre/lib/Padre/Wx/Action.pm
r12389 r12391 125 125 } 126 126 127 $ide->{shortcuts} = {} if not exists $ide->{shortcuts}; 128 my $shortcuts = $ide->{shortcuts}; 127 my $shortcuts = $ide->shortcuts; 129 128 if ( exists $shortcuts->{$shortcut} ) { 130 129 warn "Found a duplicate shortcut '$shortcut' with " . $shortcuts->{$shortcut}->name . " for '$name'\n"; -
trunk/Padre/lib/Padre/Wx/Dialog/KeyBindings.pm
r12390 r12391 321 321 return if $shortcut eq ''; 322 322 323 my $shortcuts = Padre->ide-> {shortcuts};323 my $shortcuts = Padre->ide->shortcuts; 324 324 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"; 326 326 327 327 # TODO instead of a warning, offer to overwrite the old shortcut. -
trunk/Padre/t/06-utils.t
r11931 r12391 55 55 use Padre::Wx::Action; 56 56 use Padre::Wx::ActionLibrary; 57 sub Padre::ide { return bless { shortcuts => {}}, 'Padre::IDE'; }57 sub Padre::ide { return bless {}, 'Padre::IDE'; } 58 58 sub Padre::IDE::actions { return {} } 59 59 sub Padre::IDE::config { return bless {}, 'Padre::Config' }
Note: See TracChangeset
for help on using the changeset viewer.
