Committing a fix for the "default" font issue. Also adding some of the things I have been working on for NSToolbar/NSToolbarItem.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@15368 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Gregory John Casamento 2002-12-29 05:38:29 +00:00
parent ef4235871b
commit d0ee6298b7
7 changed files with 195 additions and 14 deletions

View file

@ -37,8 +37,9 @@
#include <AppKit/NSToolbar.h>
#include <AppKit/NSView.h>
#include <AppKit/NSButton.h>
// #include <AppKit/GSHbox.h>
#include <AppKit/NSNibLoading.h>
// internal
static NSNotificationCenter *nc = nil;
static const int current_version = 1;
@ -165,15 +166,9 @@ static const int current_version = 1;
tableKey = [NSString stringWithFormat: @"NSToolbar Config %@",
_identifier];
config = [defaults objectForKey: tableKey];
if (config != nil)
{
NSEnumerator *en = [config objectEnumerator];
id item = nil;
while ((item = [en nextObject]) != nil)
{
}
[self setConfigurationFromDictionary: config];
}
}
}
@ -188,7 +183,6 @@ static const int current_version = 1;
return self;
}
/* FIXME */
- (void) dealloc
{
DESTROY (_identifier);
@ -236,6 +230,8 @@ static const int current_version = 1;
- (void) runCustomizationPalette: (id)sender
{
_customizationPaletteIsRunning = [NSBundle loadNibNamed: @"GSToolbarCustomizationPalette"
owner: self];
}
- (void) setAllowsUserCustomization: (BOOL)flag
@ -301,11 +297,18 @@ static const int current_version = 1;
- (void) validateVisibleItems
{
NSEnumerator *en = [_visibleItems objectEnumerator];
NSToolbarItem *item = nil;
while((item = [en nextObject]) != nil)
{
[item validate];
}
}
- (NSArray *) visibleItems
{
return nil;
return _visibleItems;
}
@end /* interface of NSToolbar */