Fix for palettes manager to prevent event handling problem

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/gorm/trunk@19824 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Gregory John Casamento 2004-08-04 05:03:28 +00:00
parent 8141cbdef1
commit 155b8df49a
2 changed files with 18 additions and 0 deletions

View file

@ -1,3 +1,10 @@
2004-08-04 01:08 Gregory John Casamento <greg_casamento@yahoo.com>
* GormPalettesManager.m: -[GormPalettesManager loadPalette:]
added code to made sure that the palette view cannot exceed
the maximum size. This prevents accidentally causing the
issue cited in the previous entry.
2004-08-04 00:52 Gregory John Casamento <greg_casamento@yahoo.com>
* GormDocument.m: -[GormDocument setupDefaults:] changed

View file

@ -451,6 +451,17 @@ static NSImage *dragImage = nil;
window = [palette originalWindow];
[window setExcludedFromWindowsMenu: YES];
// Resize the window appropriately so that we don't have issues
// with scrolling.
if([window styleMask] & NSBorderlessWindowMask)
{
[window setFrame: NSMakeRect(0,0,272,160) display: NO];
}
else
{
[window setFrame: NSMakeRect(0,0,272,192) display: NO];
}
[palettes addObject: palette];
[selectionView addColumn];
[[palette paletteIcon] setBackgroundColor: [selectionView backgroundColor]];