Diff for /chimera/BrowserWindowController.mm between versions 1.64 and 1.67

version 1.64, 2002/04/16 00:28:33 version 1.67, 2002/04/17 10:30:13
Line 160  static NSString *PrintToolbarItemIdentif Line 160  static NSString *PrintToolbarItemIdentif
 {  {
     [super windowDidLoad];      [super windowDidLoad];
   
     [[mURLBar cell] setImage: [NSImage imageNamed:@"smallbookmark"]];
     
     // Get our saved dimensions.      // Get our saved dimensions.
     [[self window] setFrameUsingName: @"NavigatorWindow"];      [[self window] setFrameUsingName: @"NavigatorWindow"];
           
Line 178  static NSString *PrintToolbarItemIdentif Line 180  static NSString *PrintToolbarItemIdentif
     [[self window] setAcceptsMouseMovedEvents: YES];      [[self window] setAcceptsMouseMovedEvents: YES];
           
     [self setupToolbar];      [self setupToolbar];
    
 //  03/03/2002 mlj Changing strategy a bit here.  The addTab: method was  //  03/03/2002 mlj Changing strategy a bit here.  The addTab: method was
 //      duplicating a lot of the code found here.  I have moved it to that method.  //      duplicating a lot of the code found here.  I have moved it to that method.
 //      We now remove the IB tab, then add one of our own.  //      We now remove the IB tab, then add one of our own.
Line 194  static NSString *PrintToolbarItemIdentif Line 196  static NSString *PrintToolbarItemIdentif
     [mSidebarDrawer setDelegate: self];      [mSidebarDrawer setDelegate: self];
   
     [self setupSidebarTabs];      [self setupSidebarTabs];
   
       [mPersonalToolbar initializeToolbar];
 }  }
   
 - (void)drawerWillOpen: (NSNotification*)aNotification  - (void)drawerWillOpen: (NSNotification*)aNotification
Line 201  static NSString *PrintToolbarItemIdentif Line 205  static NSString *PrintToolbarItemIdentif
   [mSidebarBookmarksDataSource ensureBookmarks];    [mSidebarBookmarksDataSource ensureBookmarks];
   
   // Force the window to shrink and move if necessary in order to accommodate the sidebar.    // Force the window to shrink and move if necessary in order to accommodate the sidebar.
  NSRect screenFrame = [[[self window] screen] frame];  NSRect screenFrame = [[[self window] screen] visibleFrame];
   NSRect windowFrame = [[self window] frame];    NSRect windowFrame = [[self window] frame];
   NSSize drawerSize = [mSidebarDrawer contentSize];    NSSize drawerSize = [mSidebarDrawer contentSize];
   int fudgeFactor = 12; // Not sure how to get the drawer's border info, so we fudge it for now.    int fudgeFactor = 12; // Not sure how to get the drawer's border info, so we fudge it for now.

Removed from v.1.64  
changed lines
  Added in v.1.67


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