Corrected minor issue.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/gorm/trunk@22562 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Gregory John Casamento 2006-02-23 03:53:26 +00:00
parent 21853c4d2c
commit b434b37722
2 changed files with 24 additions and 2 deletions

View file

@ -1,3 +1,8 @@
2006-02-22 22:52 Gregory John Casamento <greg_casamento@yahoo.com>
* Gorm.m: Overide arrangeInFront: so that when testing the interface
it doesn't inadvertantly bring the edited window forward.
2006-02-20 08:54 Gregory John Casamento <greg_casamento@yahoo.com>
* GormCore/GormScrollViewEditor.m: Correction for bug#15817.

21
Gorm.m
View file

@ -543,6 +543,14 @@
[(GormDocument *)[self activeDocument] openImage: sender];
}
- (void) arrangeInFront: (id)sender
{
if([self isTestingInterface] == NO)
{
[super arrangeInFront: sender];
}
}
- (void) testInterface: (id)sender
{
if (isTesting == YES)
@ -677,11 +685,20 @@
// so we don't get the warning...
[self setServicesMenu: nil];
[[self mainMenu] display];
[[NSApp mainWindow] makeKeyAndOrderFront: self];
en = [[self windows] objectEnumerator];
while((obj = [en nextObject]) != nil)
{
if([obj isVisible])
{
[obj makeKeyAndOrderFront: self];
}
}
// [[NSApp mainWindow] makeKeyAndOrderFront: self];
// we're now in testing mode.
[notifCenter postNotificationName: IBDidBeginTestingInterfaceNotification
object: self];
object: self];
[NSApp unhide: self];
}