From e1b4fe3b38bbc8f6b768fd6cf1d67172fc6cb167 Mon Sep 17 00:00:00 2001 From: gcasa Date: Mon, 16 Mar 2009 05:25:22 +0000 Subject: [PATCH] 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 --- ChangeLog | 8 ++++++++ Source/GSToolbarView.m | 5 +++-- Source/NSToolbarItem.m | 4 ++++ 3 files changed, 15 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 38a516a23..848e9752c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2009-03-16 01:22-EDT Gregory John Casamento + + * 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 * Source/NSScrollView.m: Fix for infinite notification loop which diff --git a/Source/GSToolbarView.m b/Source/GSToolbarView.m index d30dd239d..16dcb7dfb 100644 --- a/Source/GSToolbarView.m +++ b/Source/GSToolbarView.m @@ -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 { diff --git a/Source/NSToolbarItem.m b/Source/NSToolbarItem.m index b1477481c..25152f542 100644 --- a/Source/NSToolbarItem.m +++ b/Source/NSToolbarItem.m @@ -1586,4 +1586,8 @@ NSString *GSMovableToolbarItemPboardType = @"GSMovableToolbarItemPboardType"; return new; } +- (NSString *) description +{ + return [NSString stringWithFormat: @"<%@ - <%@>>",[super description],[self itemIdentifier]]; +} @end