mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 12:00:52 +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
|
@ -1,3 +1,9 @@
|
|||
2009-02-20 12:08-EST Gregory John Casamento <greg_casamento@yahoo.com>
|
||||
|
||||
* Source/GSToolbarCustomizationPalette.m: Look up default items before
|
||||
calling the delegate like in NSToolbar.m. This was causing an
|
||||
exception which prevented the panel from showing.
|
||||
|
||||
2009-02-18 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
* Source/GSServicesManager.m: Clean up update of services menu,
|
||||
|
|
|
@ -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…
Reference in a new issue