mirror of
https://github.com/gnustep/apps-gorm.git
synced 2025-02-24 03:51:22 +00:00
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:
parent
8141cbdef1
commit
155b8df49a
2 changed files with 18 additions and 0 deletions
|
@ -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>
|
2004-08-04 00:52 Gregory John Casamento <greg_casamento@yahoo.com>
|
||||||
|
|
||||||
* GormDocument.m: -[GormDocument setupDefaults:] changed
|
* GormDocument.m: -[GormDocument setupDefaults:] changed
|
||||||
|
|
|
@ -451,6 +451,17 @@ static NSImage *dragImage = nil;
|
||||||
window = [palette originalWindow];
|
window = [palette originalWindow];
|
||||||
[window setExcludedFromWindowsMenu: YES];
|
[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];
|
[palettes addObject: palette];
|
||||||
[selectionView addColumn];
|
[selectionView addColumn];
|
||||||
[[palette paletteIcon] setBackgroundColor: [selectionView backgroundColor]];
|
[[palette paletteIcon] setBackgroundColor: [selectionView backgroundColor]];
|
||||||
|
|
Loading…
Reference in a new issue