Changeset 846


Ignore:
Timestamp:
Sep 5, 2006, 2:23:54 AM (15 years ago)
Author:
livings124
Message:

booleans are easier...again

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/BarButton.m

    r845 r846  
    253253- (void) setForActive: (NSNotification *) notification
    254254{
    255     if ([self image] == fButtonSelectedDim)
    256         [self setImage: fButtonSelected];
    257     else if ([self image] == fButtonNormalDim)
    258         [self setImage: fButtonNormal];
    259     else;
    260    
     255    [self setImage: fEnabled ? fButtonSelected : fButtonNormal];
    261256    [self resetBounds: nil];
    262257}
Note: See TracChangeset for help on using the changeset viewer.