mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 15:11:37 +00:00
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:
parent
e1575a4206
commit
80a618c968
1 changed files with 1 additions and 3 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue