* 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:
Axel Dörfler
2006-01-03 21:56:26 +00:00
parent 4eeeeea969
commit fc62f08d8a
4 changed files with 117 additions and 81 deletions
+8 -3
View File
@@ -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);
}