Diff for /chimera/BookmarksToolbar.mm between versions 1.1 and 1.2

version 1.1, 2002/04/16 02:03:15 version 1.2, 2002/04/16 07:26:07
Line 6 Line 6
 //  Copyright (c) 2001 __MyCompanyName__. All rights reserved.  //  Copyright (c) 2001 __MyCompanyName__. All rights reserved.
 //  //
   
   #import "BookmarksButton.h"
 #import "BookmarksToolbar.h"  #import "BookmarksToolbar.h"
   
   
 @implementation BookmarksToolbar  @implementation BookmarksToolbar
   
 - (id)initWithFrame:(NSRect)frame {  - (id)initWithFrame:(NSRect)frame {
Line 16 Line 16
   if (self) {    if (self) {
     // Initialization code here.      // Initialization code here.
   }    }
   
     // Create a sample button.
     BookmarksButton* testButton = [[[BookmarksButton alloc] initWithFrame: NSMakeRect(2, 1, 100, 17)] autorelease];
     [testButton setTitle: @"Gamespot - Gaming Site"];
     [self addSubview: testButton]; 
     
   return self;    return self;
 }  }
   
 - (void)drawRect:(NSRect)aRect {  - (void)drawRect:(NSRect)aRect {
   // Fill the background with our background color.    // Fill the background with our background color.
  [[NSColor colorWithCalibratedWhite: 0.98 alpha: 1.0] set];//  [[NSColor colorWithCalibratedWhite: 0.98 alpha: 1.0] set];
  NSRectFill(aRect);//  NSRectFill(aRect);
   
   //printf("The rect is: %f %f %f %f\n", aRect.origin.x, aRect.origin.y, aRect.size.width, aRect.size.height);    //printf("The rect is: %f %f %f %f\n", aRect.origin.x, aRect.origin.y, aRect.size.width, aRect.size.height);
       
Line 34 Line 40
     NSRectFill(NSMakeRect(aRect.origin.x, aRect.origin.y, aRect.size.width, 2));      NSRectFill(NSMakeRect(aRect.origin.x, aRect.origin.y, aRect.size.width, 2));
   }    }
   
  // Paint only those cells that overlap.  // The buttons will paint themselves.
   
 }  }
   
 @end  @end

Removed from v.1.1  
changed lines
  Added in v.1.2


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>