Diff for /chimera/MainController.mm between versions 1.19 and 1.20

version 1.19, 2002/02/09 23:17:02 version 1.20, 2002/02/10 00:29:08
Line 4 Line 4
   
 #import "MainController.h"  #import "MainController.h"
 #import "BrowserWindowController.h"  #import "BrowserWindowController.h"
#include "BookmarksService.h"
 #include "nsCOMPtr.h"  #include "nsCOMPtr.h"
 #include "nsIServiceManager.h"  #include "nsIServiceManager.h"
 #include "nsIIOService.h"  #include "nsIIOService.h"
Line 23  static const char* ioServiceContractID = Line 23  static const char* ioServiceContractID =
     mMenuBookmarks = new BookmarksService(nil);      mMenuBookmarks = new BookmarksService(nil);
     mMenuBookmarks->AddObserver();      mMenuBookmarks->AddObserver();
     mMenuBookmarks->ConstructBookmarksMenu(mBookmarksMenu, nsnull);      mMenuBookmarks->ConstructBookmarksMenu(mBookmarksMenu, nsnull);
       BookmarksService::gMainController = self;
           
     // Initialize offline mode.      // Initialize offline mode.
     mOffline = NO;      mOffline = NO;
Line 191  static const char* ioServiceContractID = Line 192  static const char* ioServiceContractID =
       [[keyWindow windowController] addBookmark];        [[keyWindow windowController] addBookmark];
 }  }
   
   -(IBAction) openMenuBookmark:(id)aSender
   {
       NSWindow* keyWindow = [mApplication keyWindow];
       if (!keyWindow) {
           [self openBrowserWindowWithURLString: @"about:blank"];
           keyWindow = [mApplication keyWindow];
       }
   
       BookmarksService::OpenMenuBookmark([keyWindow windowController], aSender);
   }
 @end  @end

Removed from v.1.19  
changed lines
  Added in v.1.20


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