Removed some compiler warnings.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@18329 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
FredKiefer 2004-01-07 13:25:29 +00:00
parent 10310a96dc
commit 72c4378da2
6 changed files with 15 additions and 80 deletions

View file

@ -1,3 +1,13 @@
2003-01-07 Fred Kiefer <FredKiefer@gmx.de>
* Headers/Additions/GNUstepGUI/GSHbox.h:
* Headers/Additions/GNUstepGUI/GSVbox.h:
Cleaned up to remove compiler warnings.
* Source/NSDataLinkPanel.m: Added include of GSGuiPrivate.h to
remove compiler warning.
* Source/NSPrintInfo.m: Removed unused global paperSizes.
* Source/NSScroller.m: (-trackKnob:) Initialise presentEvent.
2004-01-06 23:39 Gregory John Casamento <greg_casamento@yahoo.com> 2004-01-06 23:39 Gregory John Casamento <greg_casamento@yahoo.com>
* Source/NSSpellServer.m: Documentation. * Source/NSSpellServer.m: Documentation.

View file

@ -178,29 +178,6 @@
when you initialize it. when you initialize it.
*/ */
-(id) init; -(id) init;
//
// Setting Border.
//
/** Set the spacing around the table.
Changing the border will update immediately the box.
The default border is zero.
Inherited from GSTable Class:
To have the same border on the four sides use:
*/
-(void) setBorder: (float)aBorder;
/** Set borders in the horizontal direction. */
-(void) setXBorder: (float)aBorder;
/** Set borders in the vertical direction. */
-(void) setYBorder: (float)aBorder;
-(void) setMinXBorder: (float)aBorder;
-(void) setMaxXBorder: (float)aBorder;
-(void) setMinYBorder: (float)aBorder;
-(void) setMaxYBorder: (float)aBorder;
// //
// Adding a View. // Adding a View.
@ -296,32 +273,11 @@ between the separator and the last added view.
In a GSHbox, only one margin is used, the one between each view In a GSHbox, only one margin is used, the one between each view
and the preceding one. If what you want is space around the GSHbox, and the preceding one. If what you want is space around the GSHbox,
you don't want a margin but a border; use setBorder: you don't want a margin but a border; use setBorder:
(see above, "Setting Border"). (see GSTable, "Setting Border").
If you need more complicated margins/borders, use GSTable. If you need more complicated margins/borders, use GSTable.
*/ */
-(void) setDefaultMinXMargin: (float)aMargin; -(void) setDefaultMinXMargin: (float)aMargin;
//
// Minimum Size.
//
/** This returns the minimum size the GSHbox should be resized to.
Trying to resize the GSHbox below this size will only result in clipping
(ie, making it disappear) part of the GSHbox.
Inherited from GSTable Class:
*/
-(NSSize) minimumSize;
//
// Resizing.
//
/** If for any reason you need the GSHbox to revert to its minimum size,
invoke the following.
Inherited from GSTable Class:
*/
-(void) sizeToFit;
// //
// Getting Number of Views // Getting Number of Views
// //

View file

@ -59,19 +59,6 @@
// //
-(id) init; -(id) init;
//
// Setting Border.
//
// Inherited from GSTable Class:
//-(void) setBorder: (float)aBorder;
//-(void) setXBorder: (float)aBorder;
//-(void) setYBorder: (float)aBorder;
//-(void) setMinXBorder: (float)aBorder;
//-(void) setMaxXBorder: (float)aBorder;
//-(void) setMinYBorder: (float)aBorder;
//-(void) setMaxYBorder: (float)aBorder;
// //
// Adding a View. // Adding a View.
// //
@ -103,21 +90,8 @@ enablingYResizing: (BOOL)aFlag
// Setting Margins. // Setting Margins.
// //
//-(void) setDefaultMinYMargin: (float)aMargin; /** See the documentation for GSHbox */
-(void) setDefaultMinYMargin: (float)aMargin;
//
// Minimum Size.
//
// Inherited from GSTable Class:
// -(NSSize) minimumSize;
//
// Resizing.
//
// Inherited from GSTable Class:
// -(void) sizeToFit;
// //
// Getting Number of Views // Getting Number of Views
@ -127,8 +101,3 @@ enablingYResizing: (BOOL)aFlag
@end @end
#endif /* _GNUstep_H_GSVbox */ #endif /* _GNUstep_H_GSVbox */

View file

@ -26,6 +26,7 @@
#include "config.h" #include "config.h"
#include "AppKit/NSDataLinkPanel.h" #include "AppKit/NSDataLinkPanel.h"
#include "AppKit/NSNibLoading.h" #include "AppKit/NSNibLoading.h"
#include "GSGuiPrivate.h"
static NSDataLinkPanel *__sharedDataLinkPanel; static NSDataLinkPanel *__sharedDataLinkPanel;

View file

@ -47,7 +47,6 @@
// Class variables: // Class variables:
static NSPrintInfo *sharedPrintInfoObject = nil; static NSPrintInfo *sharedPrintInfoObject = nil;
static NSMutableDictionary *printInfoDefaults = nil; static NSMutableDictionary *printInfoDefaults = nil;
static NSDictionary *paperSizes = nil;
@interface NSPrintInfo (private) @interface NSPrintInfo (private)
+ initPrintInfoDefaults; + initPrintInfoDefaults;

View file

@ -591,7 +591,7 @@ static NSColor *scrollBarColor = nil;
float floatValue; float floatValue;
float offset; float offset;
float initialOffset; float initialOffset;
NSEvent *presentEvent; NSEvent *presentEvent = theEvent;
NSEventType eventType = [theEvent type]; NSEventType eventType = [theEvent type];
NSRect knobRect; NSRect knobRect;
unsigned flags = [theEvent modifierFlags]; unsigned flags = [theEvent modifierFlags];