Source/NSAlert.m: (_initWithoutGModel): Removed setting of buttons style.

(_makeButtonWithRect:): Change style of button from NSMomentaryPushButton to
NSMomentaryPushInButton.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24675 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Sergii Stoian 2007-02-21 13:28:23 +00:00
parent e1575a4206
commit 80a618c968

View file

@ -286,7 +286,7 @@ makeScrollViewWithRect(NSRect rect)
NSButton *button = [[NSButton alloc] initWithFrame: rect];
[button setAutoresizingMask: NSViewMinXMargin | NSViewMaxYMargin];
[button setButtonType: NSMomentaryPushButton];
[button setButtonType: NSMomentaryInPushButton];
[button setTitle: @""];
[button setTarget: self];
[button setAction: @selector(buttonAction:)];
@ -421,10 +421,8 @@ setControl(NSView* content, id control, NSString *title)
[defButton setRefusesFirstResponder: YES];
altButton = [self _makeButtonWithRect: rect];
[altButton setHighlightsBy: NSPushInCellMask | NSChangeGrayCellMask];
[altButton setRefusesFirstResponder: YES];
othButton = [self _makeButtonWithRect: rect];
[othButton setHighlightsBy: NSPushInCellMask | NSChangeGrayCellMask];
[othButton setRefusesFirstResponder: YES];
rect.size.height = 80.0;