Diff for /chimera/BrowserWindowController.mm between versions 1.72 and 1.73

version 1.72, 2002/04/19 19:28:43 version 1.73, 2002/04/20 00:02:55
Line 598  static NSString *PrintToolbarItemIdentif Line 598  static NSString *PrintToolbarItemIdentif
 -(void)newTab  -(void)newTab
 {  {
     NSTabViewItem* newTab = [[[NSTabViewItem alloc] initWithIdentifier: nil] autorelease];      NSTabViewItem* newTab = [[[NSTabViewItem alloc] initWithIdentifier: nil] autorelease];
    MyBrowserView* newView = [[[MyBrowserView alloc] initWithFrame: [mBrowserView frame]] autorelease];    MyBrowserView* newView = [[[MyBrowserView alloc] initWithTab: newTab andWindow: [mTabBrowser window]] autorelease];
    [newView setTab: newTab];    
 
     [newTab setLabel: @"Untitled"];      [newTab setLabel: @"Untitled"];
     [newTab setView: newView];      [newTab setView: newView];
   
     [mTabBrowser addTabViewItem: newTab];      [mTabBrowser addTabViewItem: newTab];
    
     [[newView getBrowserView] loadURI:[NSURL URLWithString:@"about:blank"] flags:NSLoadFlagsNone];      [[newView getBrowserView] loadURI:[NSURL URLWithString:@"about:blank"] flags:NSLoadFlagsNone];
   
     [mTabBrowser selectLastTabViewItem: self];      [mTabBrowser selectLastTabViewItem: self];
Line 691  static NSString *PrintToolbarItemIdentif Line 689  static NSString *PrintToolbarItemIdentif
     NSTabViewItem* selectedTab = [mTabBrowser selectedTabViewItem];      NSTabViewItem* selectedTab = [mTabBrowser selectedTabViewItem];
     int index = [mTabBrowser indexOfTabViewItem: selectedTab];      int index = [mTabBrowser indexOfTabViewItem: selectedTab];
     [mTabBrowser insertTabViewItem: newTab atIndex: index+1];      [mTabBrowser insertTabViewItem: newTab atIndex: index+1];
    
    MyBrowserView* newView = [[[MyBrowserView alloc] initWithFrame: [mBrowserView frame]] autorelease];    MyBrowserView* newView = [[[MyBrowserView alloc] initWithTab: newTab andWindow: [mTabBrowser window]] autorelease];
     [newView setTab: newTab];      [newView setTab: newTab];
           
     [newTab setLabel: @"Loading..."];      [newTab setLabel: @"Loading..."];

Removed from v.1.72  
changed lines
  Added in v.1.73


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