Some small bugfixes

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@4318 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 1999-05-28 14:09:36 +00:00
parent 10fdc16015
commit a069600acc
3 changed files with 22 additions and 0 deletions

View file

@ -1,3 +1,12 @@
Fri May 28 15:15:00 1999 Richard Frith-Macdonald <richard@brainstorm.co.uk>
* Source/NSPanel.m: ([-canBecomeKeyWindow]) return NO only if the
_becomesKeyOnlyIfNeeded is set.
([-canBecomeMainWindow]) always return NO.
NSRun... functions make the panel key and order front.
* Source/NSButton.m: ([-performClick:]) lock and unlock focus round
call to the cell.
Thu May 27 19:40:00 1999 Richard Frith-Macdonald <richard@brainstorm.co.uk>
* Source/NSPasteboard.m: Tidy formatting and improve style slightly.

View file

@ -308,7 +308,9 @@ id _nsbuttonCellClass = nil;
- (void) performClick: (id)sender
{
[self lockFocus];
[cell performClick: sender];
[self unlockFocus];
}
- (BOOL) performKeyEquivalent: (NSEvent *)anEvent

View file

@ -105,6 +105,13 @@
}
- (BOOL) canBecomeKeyWindow
{
if (_becomesKeyOnlyIfNeeded)
return NO;
return YES;
}
- (BOOL) canBecomeMainWindow
{
return NO;
}
@ -685,6 +692,7 @@ NSRunAlertPanel(NSString *title,
}
[panel center];
[panel makeKeyAndOrderFront: panel];
result = [panel runModal];
NSReleaseAlertPanel(panel);
return result;
@ -707,6 +715,7 @@ NSRunCriticalAlertPanel(NSString *title,
va_end (ap);
[panel center];
[panel makeKeyAndOrderFront: panel];
result = [panel runModal];
NSReleaseAlertPanel(panel);
return result;
@ -729,6 +738,7 @@ NSRunInformationalAlertPanel(NSString *title,
va_end (ap);
[panel center];
[panel makeKeyAndOrderFront: panel];
result = [panel runModal];
NSReleaseAlertPanel(panel);
return result;
@ -792,6 +802,7 @@ NSRunLocalizedAlertPanel(NSString *table,
}
[panel center];
[panel makeKeyAndOrderFront: panel];
result = [panel runModal];
NSReleaseAlertPanel(panel);
return result;