Shut down some toolbar related compiler warnings

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@22571 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Quentin Mathe 2006-02-23 23:41:22 +00:00
parent 4597358562
commit 0b1ea1bbc2
3 changed files with 13 additions and 5 deletions

View file

@ -1,3 +1,11 @@
2006-02-24 Quentin Mathe <qmathe@club-internet.fr>
* Source/GSToolbar.m: Fixed mismatched method return type between
header and implementation.
* Source/GSToolbarView.m: Updated code to reference some external classes
lazily with NSClassFromString.
These fixes avoids some compiler warnings.
2006-02-22 23:03 Gregory John Casamento <greg_casamento@yahoo.com>
* Source/NSScreen.m: Correction for visibleFrame, spelling of
@ -7,7 +15,7 @@
* Source/GSPrintOperation.m: trap exceptions launching previwer
* Documentation/GuiUser/DefaultsSuppary.gsdoc: mention GSLPRPrinters
* Printing/GSLPR/GSLPRPrinter,m: If we set up default printer
* Printing/GSLPR/GSLPRPrinter.m: If we set up default printer
config because there was nothing in the user defaults system, save the
new config so we don't have to do it again next time.

View file

@ -140,7 +140,7 @@ static GSValidationCenter *vc;
NSMutableArray *_vobjs;
}
+ (id) sharedValidationCenter;
+ (GSValidationCenter *) sharedValidationCenter;
- (NSArray *) observersWindow: (NSWindow *)window;
- (void) addObserver: (id)observer window: (NSWindow *)window;

View file

@ -660,7 +660,7 @@ static void initSystemExtensionsColors(void)
- (void) setToolbar: (GSToolbar *)toolbar
{
if ([toolbar isKindOfClass: [NSToolbar class]])
if ([toolbar isKindOfClass: NSClassFromString(@"NSToolbar")])
[NSException raise: NSInvalidArgumentException
format: @"NSToolbar instance can't be attached directly to a \
toolbar view, setToolbar: from the NSWindow toolbar \
@ -896,8 +896,8 @@ static void initSystemExtensionsColors(void)
int index;
if ((hitView != nil)
&& ([hitView isKindOfClass: [GSToolbarButton class]]
|| [hitView isKindOfClass: [GSToolbarBackView class]]))
&& ([hitView isKindOfClass: NSClassFromString(@"GSToolbarButton")]
|| [hitView isKindOfClass: NSClassFromString(@"GSToolbarBackView")]))
{
index = [_toolbar _indexOfItem: [hitView toolbarItem]];
if (location.x - hitViewFrame.origin.x > hitViewFrame.size.width / 2)