Minor updates.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@21285 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
gcasa 2005-06-04 19:52:40 +00:00
parent e28e4f3bc5
commit b138e32d70
3 changed files with 13 additions and 6 deletions

View file

@ -1,3 +1,10 @@
2005-06-04 08:11 Gregory John Casamento <greg_casamento@yahoo.com>
* Headers/Additions/GNUstepGUI/GSNibTemplates.h: Minor update to
constant name.
* Source/GSNibTemplates.m: Use new constant name, and move call
to autoPositionWindow: outside of class name check.
2005-06-04 07:36 Gregory John Casamento <greg_casamento@yahoo.com> 2005-06-04 07:36 Gregory John Casamento <greg_casamento@yahoo.com>
* Headers/Additions/GNUstepGUI/GSNibTemplates.h: Constants for new * Headers/Additions/GNUstepGUI/GSNibTemplates.h: Constants for new

View file

@ -52,7 +52,7 @@
/** Window template autopositioning constants */ /** Window template autopositioning constants */
enum { enum {
GSWindowAutosizeNone = 0, GSWindowAutoPositionNone = 0,
GSWindowMinXMargin = 1, GSWindowMinXMargin = 1,
GSWindowMaxXMargin = 2, GSWindowMaxXMargin = 2,
GSWindowMinYMargin = 4, GSWindowMinYMargin = 4,

View file

@ -746,7 +746,7 @@ static NSString *GSInternalNibItemAddedNotification = @"_GSInternalNibItemAddedN
BOOL changedOrigin = NO; BOOL changedOrigin = NO;
// reposition the window on the screen. // reposition the window on the screen.
if (_autoPositionMask == GSWindowAutosizeNone) if (_autoPositionMask == GSWindowAutoPositionNone)
return; return;
/* /*
@ -827,7 +827,7 @@ static NSString *GSInternalNibItemAddedNotification = @"_GSInternalNibItemAddedN
{ {
// decode the defer flag... // decode the defer flag...
[coder decodeValueOfObjCType: @encode(BOOL) at: &_deferFlag]; [coder decodeValueOfObjCType: @encode(BOOL) at: &_deferFlag];
_autoPositionMask = GSWindowAutosizeNone; _autoPositionMask = GSWindowAutoPositionNone;
_screenRect = [[_object screen] frame]; _screenRect = [[_object screen] frame];
} }
@ -847,11 +847,11 @@ static NSString *GSInternalNibItemAddedNotification = @"_GSInternalNibItemAddedN
// set the content view back // set the content view back
[obj setContentView: contentView]; [obj setContentView: contentView];
}
// autoposition window // autoposition window
[self autoPositionWindow: obj]; [self autoPositionWindow: obj];
} }
}
else else
{ {
// //