Stop the throbber from animating when it's been removed from the toolbar

(bug 155869)
This commit is contained in:
pinkerton%netscape.com 2002-08-14 21:46:01 +00:00
Родитель 32657223c0
Коммит 536a42646f
4 изменённых файлов: 12 добавлений и 4 удалений

Просмотреть файл

@ -441,7 +441,7 @@ static NSArray* sToolbarDefaults = nil;
}
//
// toolbarWillAddItem: (toolbar delegate method)
// toolbarDidRemoveItem: (toolbar delegate method)
//
// Called when a button is about to be removed from a toolbar. This is where we should
// uncache items so we don't access them after they're gone. For instance, we want to
@ -452,6 +452,8 @@ static NSArray* sToolbarDefaults = nil;
NSToolbarItem* item = [[notification userInfo] objectForKey:@"item"];
if ( [[item itemIdentifier] isEqual:SidebarToolbarItemIdentifier] )
mSidebarToolbarItem = nil;
else if ( [[item itemIdentifier] isEqual:ThrobberToolbarItemIdentifier] )
[self stopThrobber];
}
- (NSArray *)toolbarAllowedItemIdentifiers:(NSToolbar *)toolbar

Просмотреть файл

@ -441,7 +441,7 @@ static NSArray* sToolbarDefaults = nil;
}
//
// toolbarWillAddItem: (toolbar delegate method)
// toolbarDidRemoveItem: (toolbar delegate method)
//
// Called when a button is about to be removed from a toolbar. This is where we should
// uncache items so we don't access them after they're gone. For instance, we want to
@ -452,6 +452,8 @@ static NSArray* sToolbarDefaults = nil;
NSToolbarItem* item = [[notification userInfo] objectForKey:@"item"];
if ( [[item itemIdentifier] isEqual:SidebarToolbarItemIdentifier] )
mSidebarToolbarItem = nil;
else if ( [[item itemIdentifier] isEqual:ThrobberToolbarItemIdentifier] )
[self stopThrobber];
}
- (NSArray *)toolbarAllowedItemIdentifiers:(NSToolbar *)toolbar

Просмотреть файл

@ -441,7 +441,7 @@ static NSArray* sToolbarDefaults = nil;
}
//
// toolbarWillAddItem: (toolbar delegate method)
// toolbarDidRemoveItem: (toolbar delegate method)
//
// Called when a button is about to be removed from a toolbar. This is where we should
// uncache items so we don't access them after they're gone. For instance, we want to
@ -452,6 +452,8 @@ static NSArray* sToolbarDefaults = nil;
NSToolbarItem* item = [[notification userInfo] objectForKey:@"item"];
if ( [[item itemIdentifier] isEqual:SidebarToolbarItemIdentifier] )
mSidebarToolbarItem = nil;
else if ( [[item itemIdentifier] isEqual:ThrobberToolbarItemIdentifier] )
[self stopThrobber];
}
- (NSArray *)toolbarAllowedItemIdentifiers:(NSToolbar *)toolbar

Просмотреть файл

@ -441,7 +441,7 @@ static NSArray* sToolbarDefaults = nil;
}
//
// toolbarWillAddItem: (toolbar delegate method)
// toolbarDidRemoveItem: (toolbar delegate method)
//
// Called when a button is about to be removed from a toolbar. This is where we should
// uncache items so we don't access them after they're gone. For instance, we want to
@ -452,6 +452,8 @@ static NSArray* sToolbarDefaults = nil;
NSToolbarItem* item = [[notification userInfo] objectForKey:@"item"];
if ( [[item itemIdentifier] isEqual:SidebarToolbarItemIdentifier] )
mSidebarToolbarItem = nil;
else if ( [[item itemIdentifier] isEqual:ThrobberToolbarItemIdentifier] )
[self stopThrobber];
}
- (NSArray *)toolbarAllowedItemIdentifiers:(NSToolbar *)toolbar