Changeset 3275
- Timestamp:
- 03/12/09 02:59:22 (3 years ago)
- File:
-
- 1 edited
-
trunk/Padre/lib/Padre/Config.pm (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Padre/lib/Padre/Config.pm
r3274 r3275 36 36 our $SINGLETON = undef; 37 37 38 # Settings Types (based on Firefox)39 use constant BOOLEAN => 0;40 use constant POSINT => 1;41 use constant INTEGER => 2;42 use constant ASCII => 3;43 use constant PATH => 4;44 45 # Setting Stores46 use constant HOST => 0;47 use constant HUMAN => 1;48 use constant PROJECT => 2;49 38 50 39 # Accessor generation … … 494 483 Carp::croak("Did not provide a project config to Padre::Config->new"); 495 484 } 496 $self->[ PROJECT] = $project;485 $self->[$PROJECT] = $project; 497 486 } 498 487 … … 525 514 Carp::croak("Tried to change setting '$name' to non-integer '$value'"); 526 515 } 527 if ( $type == PATH and not -e $value ) {516 if ( $type == $PATH and not -e $value ) { 528 517 Carp::croak("Tried to change setting '$name' to non-existant path '$value'"); 529 518 }
Note: See TracChangeset
for help on using the changeset viewer.
