Correction for translate to display the windows after translation.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/gorm/trunk@21309 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Gregory John Casamento 2005-06-15 00:34:36 +00:00
parent 98da5d2ea6
commit ecb1e77bfa
2 changed files with 21 additions and 7 deletions

View file

@ -1,3 +1,8 @@
2005-06-14 20:39 Gregory John Casamento <greg_casamento@yahoo.com>
* GormCore/GormDocument.m: Fix in [GormDocument translate] to
properly redisplay the window after translation.
2005-06-12 23:36 Gregory John Casamento <greg_casamento@yahoo.com>
* GormCore/GormOutlineView.m: _handleDoubleClick: now calls

View file

@ -2495,10 +2495,11 @@ static NSImage *fileImage = nil;
*/
- (void) removeConnector: (id<IBConnectors>)aConnector
{
NSNotificationCenter *nc = [NSNotificationCenter defaultCenter];
RETAIN(aConnector); // prevent it from being dealloc'd until the notification is done.
// issue pre notification..
NSNotificationCenter *nc = [NSNotificationCenter defaultCenter];
[nc postNotificationName: IBWillRemoveConnectorNotification
[nc postNotificationName: IBWillRemoveConnectorNotification
object: aConnector];
// mark the document as changed.
@ -3928,14 +3929,22 @@ static NSImage *fileImage = nil;
{
[obj setNeedsDisplay: YES];
}
else if([obj isKindOfClass: [NSWindow class]])
{
[obj setViewsNeedDisplay: YES];
[obj orderFront: self];
}
[self touch];
}
// redisplay/flush, if the object is a window.
if([obj isKindOfClass: [NSWindow class]])
{
NSWindow *w = (NSWindow *)obj;
[w setViewsNeedDisplay: YES];
[w disableFlushWindow];
[[w contentView] setNeedsDisplay: YES];
[[w contentView] displayIfNeeded];
[w enableFlushWindow];
[w flushWindowIfNeeded];
}
}
}
}