Changeset 579


Ignore:
Timestamp:
Jul 15, 2006, 4:51:38 PM (16 years ago)
Author:
livings124
Message:

Removed unneeded variable and pushing down on a selected filter button will make it pushed in.

Location:
trunk/macosx
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/BarButton.h

    r576 r579  
    3131
    3232    NSString * fPrefString, * fPrefKey;
    33     BOOL fEnabled, fMouseIn;
     33    BOOL fEnabled;
    3434}
    3535
  • trunk/macosx/BarButton.m

    r577 r579  
    3232    {
    3333        fEnabled = NO;
    34         fMouseIn = NO;
    3534       
    3635        NSSize buttonSize = [self frame].size;
     
    117116        [self setImage: fButtonIn];
    118117
    119     fMouseIn = YES;
    120118    [super mouseEntered: event];
    121119}
     
    126124        [self setImage: fButtonNormal];
    127125
    128     fMouseIn = NO;
    129126    [super mouseExited: event];
    130127}
     
    132129- (void) mouseDown: (NSEvent *) event
    133130{
    134     if (!fEnabled)
    135         [self setImage: fButtonDown];
     131    [self setImage: fButtonDown];
    136132
    137133    [super mouseDown: event];
     
    142138        [NSApp sendAction: [self action] to: [self target] from: self];
    143139   
    144     if (!fEnabled)
    145         [self setImage: fButtonIn];
     140    [self setImage: fButtonIn];
    146141}
    147142
Note: See TracChangeset for help on using the changeset viewer.