* Fixed BView::_SetShelf(), it did not remove a previous shelf.
* Fixed BShelf::_AddReplicant(), at least a bit. I managed to add the "ScreenChanger" icon to the tray, although the icon was not drawn, and it was on the wrong position. * _AddReplicant() also did not reply to the waiting message source in case of failure. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15829 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -4252,17 +4252,22 @@ BView::_UpdatePattern(::pattern pattern)
|
||||
|
||||
|
||||
BShelf *
|
||||
BView::shelf() const
|
||||
BView::_Shelf() const
|
||||
{
|
||||
return fShelf;
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
BView::set_shelf(BShelf *shelf)
|
||||
BView::_SetShelf(BShelf *shelf)
|
||||
{
|
||||
// TODO: is this all that needs done?
|
||||
if (fShelf != NULL && fOwner != NULL)
|
||||
fOwner->RemoveHandler(fShelf);
|
||||
|
||||
fShelf = shelf;
|
||||
|
||||
if (fShelf != NULL && fOwner != NULL)
|
||||
fOwner->AddHandler(fShelf);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user