* 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)


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@14868 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Pierre-Yves Rivaille 2002-10-29 18:00:15 +00:00
parent 2f5753f29d
commit ed7570937a
6 changed files with 18 additions and 11 deletions

View file

@ -1,3 +1,19 @@
2002-10-29 Pierre-Yves Rivaille <pyrivail@ens-lyon.fr>
* 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 <rfm@gnu.org>
* Headers/gnustep/gui/GSMethodTable.h:

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View file

@ -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
{