Fixes to correct issues with toolbar pallete customization.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28083 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Gregory John Casamento 2009-03-16 05:25:22 +00:00
parent f4571a026a
commit 6f3f7be33c
3 changed files with 15 additions and 2 deletions

View file

@ -1,3 +1,11 @@
2009-03-16 01:22-EDT Gregory John Casamento <greg_casamento@yahoo.com>
* Source/GSToolbarView.m: Call the _insertItemWithItemIdentifier:..
method to add items when they are not being dragged from within
the toolbar and are being added from the palette.
* Source/NSToolbarItem.m: Added information to the description
to help with debugging.
2009-03-15 18:37-EDT Gregory John Casamento <greg_casamento@yahoo.com>
* Source/NSScrollView.m: Fix for infinite notification loop which

View file

@ -401,9 +401,10 @@ static void initSystemExtensionsColors(void)
if(index == -1)
{
[toolbar _insertPassivelyItem:item atIndex: newIndex];
[toolbar _insertItemWithItemIdentifier: [item itemIdentifier]
atIndex: newIndex
broadcast: YES];
RELEASE(item);
[toolbar _moveItemFromIndex: newIndex toIndex: newIndex broadcast: YES];
}
else
{

View file

@ -1586,4 +1586,8 @@ NSString *GSMovableToolbarItemPboardType = @"GSMovableToolbarItemPboardType";
return new;
}
- (NSString *) description
{
return [NSString stringWithFormat: @"<%@ - <%@>>",[super description],[self itemIdentifier]];
}
@end