Minor tidying

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@3435 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
richard 1998-12-12 10:03:44 +00:00
parent 0ee2f21566
commit 01ac1e8035
2 changed files with 39 additions and 33 deletions

View file

@ -62,8 +62,10 @@
+ (void)initialize
{
if (self == [NSPanel class])
{
[self setVersion:1];
}
}
//
// Instance methods
@ -116,7 +118,7 @@ int style = NSTitledWindowMask | NSClosableWindowMask;
//*****************************************************************************
#define PANX 362.0
#define PANY 191.0
#define PANY 161.0
@class GSAlertPanel;
@ -152,8 +154,10 @@ static GSAlertPanel *reusableAlertPanel = nil;
+ (void)initialize
{
if (self == [GSAlertPanel class])
{
[self setVersion:1];
}
}
- (void) buttonAction: (id)sender
{
@ -215,6 +219,7 @@ static GSAlertPanel *reusableAlertPanel = nil;
if (self)
{
NSView *content;
NSImage *image;
unsigned bs = 10.0; /* Inter-button space */
unsigned bh = 24.0; /* Button height. */
unsigned bw = 72.0; /* Button width. */
@ -280,8 +285,8 @@ static GSAlertPanel *reusableAlertPanel = nil;
[icoButton setBordered: NO];
[icoButton setEnabled: NO];
[icoButton setImagePosition: NSImageOnly];
[icoButton setImage:
[[NSApplication sharedApplication] applicationIconImage]];
image = [[NSApplication sharedApplication] applicationIconImage];
[icoButton setImage: image];
rect.size.height = 36.0;
rect.size.width = 344.0;
@ -294,6 +299,7 @@ static GSAlertPanel *reusableAlertPanel = nil;
[messageField setSelectable: NO];
[messageField setBordered: NO];
[messageField setDrawsBackground: NO];
[messageField setAlignment: NSCenterTextAlignment];
[messageField setStringValue: @""];
[messageField setFont: [NSFont systemFontOfSize: 14.0]];

View file

@ -643,12 +643,12 @@ PSMatrix* matrix;
changey = [super_view bounds].size.height - oldSize.height;
// adjust the X axis
fprintf (stderr, "NSView resizeWithOldSuperviewSize: \n");
fprintf (stderr, "Change x,y (%1.2f, %1.2f)\n", changex, changey);
fprintf (stderr,
"NSView: old origin (%1.2f, %1.2f), size (%1.2f, %1.2f)\n",
frame.origin.x, frame.origin.y,
frame.size.width, frame.size.height);
// fprintf (stderr, "NSView resizeWithOldSuperviewSize: \n");
// fprintf (stderr, "Change x,y (%1.2f, %1.2f)\n", changex, changey);
// fprintf (stderr,
// "NSView: old origin (%1.2f, %1.2f), size (%1.2f, %1.2f)\n",
// frame.origin.x, frame.origin.y,
// frame.size.width, frame.size.height);
if (changex)
{
@ -742,10 +742,10 @@ PSMatrix* matrix;
}
}
fprintf (stderr,
"NSView: new origin (%1.2f, %1.2f), size (%1.2f, %1.2f)\n",
frame.origin.x, frame.origin.y,
frame.size.width, frame.size.height);
// fprintf (stderr,
// "NSView: new origin (%1.2f, %1.2f), size (%1.2f, %1.2f)\n",
// frame.origin.x, frame.origin.y,
// frame.size.width, frame.size.height);
/* FIXME
* The lines containing 'floor()' ensure that the frame sizes are an integer