* Source/NSToolbarItem.m (-setView:): Only set the min/max size of

the toolbar item when it was zero.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30413 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Fred Kiefer 2010-05-17 20:19:00 +00:00
parent 3ea29572c2
commit 664d8a24c1
2 changed files with 9 additions and 2 deletions

View file

@ -1,3 +1,8 @@
2010-05-17 Fred Kiefer <FredKiefer@gmx.de>
* Source/NSToolbarItem.m (-setView:): Only set the min/max size of
the toolbar item when it was zero.
2010-05-17 04:36-EDT Gregory John Casamento <greg.casamento@gmail.com>
* Source/NSApplication.m: Attempt to open files from the command

View file

@ -1386,8 +1386,10 @@ NSString *GSMovableToolbarItemPboardType = @"GSMovableToolbarItemPboardType";
NSSize size;
size = [view frame].size;
[self setMinSize: size];
[self setMaxSize: size];
if (NSEqualSizes(NSZeroSize, _minSize))
[self setMinSize: size];
if (NSEqualSizes(NSZeroSize, _maxSize))
[self setMaxSize: size];
[_view setToolTip: _toolTip];