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

version 1.34, 2002/02/21 08:59:58 version 1.36, 2002/02/22 09:16:48
Line 21  static NSString *PrintToolbarItemIdentif Line 21  static NSString *PrintToolbarItemIdentif
   
 @implementation BrowserWindowController  @implementation BrowserWindowController
   
   -(void)mouseMoved:(NSEvent*)aEvent
   {
       if (mMoveReentrant)
           return;
           
       mMoveReentrant = YES;
       NSView* view = [[[self window] contentView] hitTest: [aEvent locationInWindow]];
       [view mouseMoved: aEvent];
       [super mouseMoved: aEvent];
       mMoveReentrant = NO;
   }
   
 - (id)init   - (id)init 
 {  {
     mInitialized = NO;      mInitialized = NO;
       mMoveReentrant = NO;
     return [super init];      return [super init];
 }  }
   
Line 45  static NSString *PrintToolbarItemIdentif Line 58  static NSString *PrintToolbarItemIdentif
   
 - (void)windowDidLoad  - (void)windowDidLoad
 {  {
       [super windowDidLoad];
       
     mInitialized = YES;      mInitialized = YES;
     [[self window] setAcceptsMouseMovedEvents: YES];      [[self window] setAcceptsMouseMovedEvents: YES];
           
Line 334  static NSString *PrintToolbarItemIdentif Line 349  static NSString *PrintToolbarItemIdentif
   
 - (IBAction)toggleSidebar:(id)aSender  - (IBAction)toggleSidebar:(id)aSender
 {  {
       NSResponder* resp = [[self window] firstResponder];
       [[self window] makeFirstResponder: nil];
       
     if ( ([mSidebarDrawer state] == NSDrawerClosedState) || ([mSidebarDrawer state] == NSDrawerClosingState) )  {      if ( ([mSidebarDrawer state] == NSDrawerClosedState) || ([mSidebarDrawer state] == NSDrawerClosingState) )  {
         // XXXHack to bypass sidebar crashes.          // XXXHack to bypass sidebar crashes.
         [[self window] makeFirstResponder: nil];  
         [mSidebarDrawer open];          [mSidebarDrawer open];
     } else {      } else {
         [mSidebarDrawer close];          [mSidebarDrawer close];
     }      }
       
       [[self window] makeFirstResponder: resp];
 }  }
   
 -(void)loadURL:(NSURL*)aURL  -(void)loadURL:(NSURL*)aURL

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


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