diff --git a/ChangeLog b/ChangeLog index 72e97d2fe..20581e274 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,19 @@ +2002-10-29 Pierre-Yves Rivaille + + * Source/NSSplitView.m ([NSSplitView -resizeSubviewsWithOldSize:]): + Move code from setFrame: & resizeWithOldSuperviewSize: + to resizeSubviewsWithOldSize:. + + * Source/NSColorPanel.m ([NSColorPanel _initWithoutGModel]): + make the window a little bit higher. Some ColorPickers would not fit. + * ColorPickers/GSCMYKColorPicker.tiff: + * ColorPickers/GSGrayColorPicker.tiff: + * ColorPickers/GSHSBColorPicker.tiff: + * ColorPickers/GSRGBColorPicker.tiff: + resize so that the image fits within the NSButton. + (only blank area was removed) + + 2002-10-29 Richard Frith-Macdonald * Headers/gnustep/gui/GSMethodTable.h: diff --git a/ColorPickers/GSCMYKColorPicker.tiff b/ColorPickers/GSCMYKColorPicker.tiff index 55e326cd9..1a9010899 100644 Binary files a/ColorPickers/GSCMYKColorPicker.tiff and b/ColorPickers/GSCMYKColorPicker.tiff differ diff --git a/ColorPickers/GSGrayColorPicker.tiff b/ColorPickers/GSGrayColorPicker.tiff index b04ccf807..97b223e31 100644 Binary files a/ColorPickers/GSGrayColorPicker.tiff and b/ColorPickers/GSGrayColorPicker.tiff differ diff --git a/ColorPickers/GSHSBColorPicker.tiff b/ColorPickers/GSHSBColorPicker.tiff index 9c2a0408f..90da85500 100644 Binary files a/ColorPickers/GSHSBColorPicker.tiff and b/ColorPickers/GSHSBColorPicker.tiff differ diff --git a/ColorPickers/GSRGBColorPicker.tiff b/ColorPickers/GSRGBColorPicker.tiff index 2e4a5dc48..41fae4821 100644 Binary files a/ColorPickers/GSRGBColorPicker.tiff and b/ColorPickers/GSRGBColorPicker.tiff differ diff --git a/Source/NSSplitView.m b/Source/NSSplitView.m index 248cd1529..ebde3efce 100644 --- a/Source/NSSplitView.m +++ b/Source/NSSplitView.m @@ -814,21 +814,12 @@ static inline NSPoint centerSizeInRect(NSSize innerSize, NSRect outerRect) return YES; } -- (void) setFrame: (NSRect) newFrame +- (void) resizeSubviewsWithOldSize: (NSSize) oldSize { - NSRect oldFrame = [self frame]; - [super setFrame: newFrame]; - [self _adjustSubviews: oldFrame.size]; + [self _adjustSubviews: oldSize]; [_window invalidateCursorRectsForView: self]; } -- (void) resizeWithOldSuperviewSize: (NSSize)oldSize -{ - NSRect oldFrame = [self frame]; - [super resizeWithOldSuperviewSize: oldSize]; - [self _adjustSubviews: oldFrame.size]; - [_window invalidateCursorRectsForView: self]; -} - (void) displayIfNeededInRectIgnoringOpacity: (NSRect)aRect {