mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 16:30:53 +00:00
Correction for toolbar customization palette not showing when standard elements are included.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27929 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
9d6e4d8b8b
commit
cf427c2451
2 changed files with 22 additions and 6 deletions
|
@ -254,18 +254,28 @@
|
|||
e = [itemIdentifiers objectEnumerator];
|
||||
while ((identifier = [e nextObject]) != nil)
|
||||
{
|
||||
[_allowedItems addObject: [delegate toolbar: toolbar
|
||||
itemForItemIdentifier: identifier
|
||||
willBeInsertedIntoToolbar: NO]];
|
||||
NSToolbarItem *item = [toolbar _toolbarItemForIdentifier: identifier];
|
||||
if(item == nil)
|
||||
{
|
||||
item = [delegate toolbar: toolbar
|
||||
itemForItemIdentifier: identifier
|
||||
willBeInsertedIntoToolbar: NO];
|
||||
}
|
||||
[_allowedItems addObject: item];
|
||||
}
|
||||
|
||||
itemIdentifiers = [delegate toolbarDefaultItemIdentifiers: toolbar];
|
||||
e = [itemIdentifiers objectEnumerator];
|
||||
while ((identifier = [e nextObject]) != nil)
|
||||
{
|
||||
[_defaultItems addObject: [delegate toolbar: toolbar
|
||||
itemForItemIdentifier: identifier
|
||||
willBeInsertedIntoToolbar: NO]];
|
||||
NSToolbarItem *item = [toolbar _toolbarItemForIdentifier: identifier];
|
||||
if(item == nil)
|
||||
{
|
||||
item = [delegate toolbar: toolbar
|
||||
itemForItemIdentifier: identifier
|
||||
willBeInsertedIntoToolbar: NO];
|
||||
}
|
||||
[_defaultItems addObject: item];
|
||||
}
|
||||
|
||||
[_customizationView setToolbarItems: _allowedItems];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue