Diff for /chimera/BrowserWindowController.mm between versions 1.32 and 1.34

version 1.32, 2002/02/13 02:41:40 version 1.34, 2002/02/21 08:59:58
Line 46  static NSString *PrintToolbarItemIdentif Line 46  static NSString *PrintToolbarItemIdentif
 - (void)windowDidLoad  - (void)windowDidLoad
 {  {
     mInitialized = YES;      mInitialized = YES;
       [[self window] setAcceptsMouseMovedEvents: YES];
       
     [self setupToolbar];      [self setupToolbar];
   
     // Our initial view is our primary view.  Connect it up.      // Our initial view is our primary view.  Connect it up.
Line 332  static NSString *PrintToolbarItemIdentif Line 334  static NSString *PrintToolbarItemIdentif
   
 - (IBAction)toggleSidebar:(id)aSender  - (IBAction)toggleSidebar:(id)aSender
 {  {
     NSLog(@"The sidebar drawer is: %@", mSidebarDrawer);  
     if ( ([mSidebarDrawer state] == NSDrawerClosedState) || ([mSidebarDrawer state] == NSDrawerClosingState) )  {      if ( ([mSidebarDrawer state] == NSDrawerClosedState) || ([mSidebarDrawer state] == NSDrawerClosingState) )  {
        NSLog(@"opening drawer");        // XXXHack to bypass sidebar crashes.
         [[self window] makeFirstResponder: nil];
         [mSidebarDrawer open];          [mSidebarDrawer open];
     } else {      } else {
         NSLog(@"closing drawer");  
         [mSidebarDrawer close];          [mSidebarDrawer close];
     }      }
 }  }

Removed from v.1.32  
changed lines
  Added in v.1.34


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