mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-06-01 14:01:55 +00:00
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:
parent
807b8408a2
commit
934e125679
3 changed files with 22 additions and 0 deletions
|
@ -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>
|
Thu May 27 19:40:00 1999 Richard Frith-Macdonald <richard@brainstorm.co.uk>
|
||||||
|
|
||||||
* Source/NSPasteboard.m: Tidy formatting and improve style slightly.
|
* Source/NSPasteboard.m: Tidy formatting and improve style slightly.
|
||||||
|
|
|
@ -308,7 +308,9 @@ id _nsbuttonCellClass = nil;
|
||||||
|
|
||||||
- (void) performClick: (id)sender
|
- (void) performClick: (id)sender
|
||||||
{
|
{
|
||||||
|
[self lockFocus];
|
||||||
[cell performClick: sender];
|
[cell performClick: sender];
|
||||||
|
[self unlockFocus];
|
||||||
}
|
}
|
||||||
|
|
||||||
- (BOOL) performKeyEquivalent: (NSEvent *)anEvent
|
- (BOOL) performKeyEquivalent: (NSEvent *)anEvent
|
||||||
|
|
|
@ -105,6 +105,13 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
- (BOOL) canBecomeKeyWindow
|
- (BOOL) canBecomeKeyWindow
|
||||||
|
{
|
||||||
|
if (_becomesKeyOnlyIfNeeded)
|
||||||
|
return NO;
|
||||||
|
return YES;
|
||||||
|
}
|
||||||
|
|
||||||
|
- (BOOL) canBecomeMainWindow
|
||||||
{
|
{
|
||||||
return NO;
|
return NO;
|
||||||
}
|
}
|
||||||
|
@ -685,6 +692,7 @@ NSRunAlertPanel(NSString *title,
|
||||||
}
|
}
|
||||||
|
|
||||||
[panel center];
|
[panel center];
|
||||||
|
[panel makeKeyAndOrderFront: panel];
|
||||||
result = [panel runModal];
|
result = [panel runModal];
|
||||||
NSReleaseAlertPanel(panel);
|
NSReleaseAlertPanel(panel);
|
||||||
return result;
|
return result;
|
||||||
|
@ -707,6 +715,7 @@ NSRunCriticalAlertPanel(NSString *title,
|
||||||
va_end (ap);
|
va_end (ap);
|
||||||
|
|
||||||
[panel center];
|
[panel center];
|
||||||
|
[panel makeKeyAndOrderFront: panel];
|
||||||
result = [panel runModal];
|
result = [panel runModal];
|
||||||
NSReleaseAlertPanel(panel);
|
NSReleaseAlertPanel(panel);
|
||||||
return result;
|
return result;
|
||||||
|
@ -729,6 +738,7 @@ NSRunInformationalAlertPanel(NSString *title,
|
||||||
va_end (ap);
|
va_end (ap);
|
||||||
|
|
||||||
[panel center];
|
[panel center];
|
||||||
|
[panel makeKeyAndOrderFront: panel];
|
||||||
result = [panel runModal];
|
result = [panel runModal];
|
||||||
NSReleaseAlertPanel(panel);
|
NSReleaseAlertPanel(panel);
|
||||||
return result;
|
return result;
|
||||||
|
@ -792,6 +802,7 @@ NSRunLocalizedAlertPanel(NSString *table,
|
||||||
}
|
}
|
||||||
|
|
||||||
[panel center];
|
[panel center];
|
||||||
|
[panel makeKeyAndOrderFront: panel];
|
||||||
result = [panel runModal];
|
result = [panel runModal];
|
||||||
NSReleaseAlertPanel(panel);
|
NSReleaseAlertPanel(panel);
|
||||||
return result;
|
return result;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue