Diff for /chimera/BookmarksToolbar.mm between versions 1.7 and 1.8

version 1.7, 2002/04/17 22:57:07 version 1.8, 2002/04/18 00:27:51
Line 41 Line 41
   
 - (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 54 Line 54
     NSRectFill(NSMakeRect(aRect.origin.x, aRect.origin.y, aRect.size.width, 2));      NSRectFill(NSMakeRect(aRect.origin.x, aRect.origin.y, aRect.size.width, 2));
   }    }
   
  // The buttons will paint themselves.  // The buttons will paint themselves. Just call our base class method.
   [super drawRect: aRect];
 }  }
   
 -(void)buildButtonList  -(void)buildButtonList
Line 100 Line 101
       break;        break;
     }      }
   }    }
   
     [self setNeedsDisplay: YES];
 }  }
   
 -(void)reflowButtons  -(void)reflowButtons
Line 127 Line 130
     [button setFrame: NSMakeRect(prevX, [button frame].origin.y, width, height)];      [button setFrame: NSMakeRect(prevX, [button frame].origin.y, width, height)];
   
     prevX += [button frame].size.width + 2;      prevX += [button frame].size.width + 2;
   
       [button setNeedsDisplay: YES];
   }    }
 }  }
 @end  @end

Removed from v.1.7  
changed lines
  Added in v.1.8


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