Several minor bugfixes

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@3576 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 1999-01-19 10:55:24 +00:00
parent b1aa75df09
commit 681644efb2
3 changed files with 15 additions and 1 deletions

View file

@ -8,6 +8,10 @@ Tue Jan 19 10:00:00 1999 Richard Frith-Macdonald <richard@brainstorm.co.uk>
* Source/NSBrowser.m: ([-selectedRowInColumn:]) implemented as
suggested by Dirk Olmes.
* Headers/AppKit/NSBrowser.h: ditto
* Source/NSView.m: Raise exception if supplied with illegal
bounds size (reported by Benhur-de-Oliveira.Stein@imag.fr)
* Source/NSControl.m: Corrected ([-sendActionon:]) as
suggested by Benhur-de-Oliveira.Stein@imag.fr
Mon Jan 18 5:00:00 1999 Richard Frith-Macdonald <richard@brainstorm.co.uk>

View file

@ -312,7 +312,11 @@ NSApplication *theApp = [NSApplication sharedApplication];
return NO;
}
- (int)sendActionOn:(int)mask { return 0; }
- (int) sendActionOn: (int)mask
{
return [cell sendActionOn: mask];
}
- (void)setAction:(SEL)aSelector { [cell setAction:aSelector]; }
- (void)setContinuous:(BOOL)flag { [cell setContinuous:flag]; }
- (void)setTarget:(id)anObject { [cell setTarget:anObject]; }

View file

@ -376,6 +376,9 @@ NSSize old_size = frame.size;
{
float sx, sy;
if (aRect.size.width <= 0 || aRect.size.height <= 0)
[NSException raise: NSInvalidArgumentException
format: @"illegal bounds size supplied"];
bounds = aRect;
[boundsMatrix setFrameOrigin: NSMakePoint(-bounds.origin.x,
-bounds.origin.y)];
@ -408,6 +411,9 @@ float sx, sy;
{
float sx, sy;
if (newSize.width <= 0 || newSize.height <= 0)
[NSException raise: NSInvalidArgumentException
format: @"illegal bounds size supplied"];
bounds.size = newSize;
sx = frame.size.width / bounds.size.width;
sy = frame.size.height / bounds.size.height;